diff options
author | Zack Weinberg <zackw@panix.com> | 2017-09-21 16:35:55 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2017-09-21 16:35:55 -0400 |
commit | 2df88d174d1b6b4816ad69e189cbb26db18a3aec (patch) | |
tree | de572fa3c082ee6dda6bc19a6a8854ceb654c616 /.gitignore | |
parent | 8881fed171b160354f8c57d64530fe37cd5cff66 (diff) | |
download | libxcrypt-2df88d174d1b6b4816ad69e189cbb26db18a3aec.tar.gz libxcrypt-2df88d174d1b6b4816ad69e189cbb26db18a3aec.tar.bz2 libxcrypt-2df88d174d1b6b4816ad69e189cbb26db18a3aec.zip |
Generate crypt.h for installation.
This allows us to cleanly use <sys/cdefs.h>'s definitions of
__BEGIN_DECLS, __END_DECLS, __THROW, and __nonnull, with fallbacks if
the header doesn't exist or doesn't provide the expected set of
declarations.
* crypt.h: Rename to crypt-base.h. Replace header and trailer
with marker comments.
* crypt-private.h: Include crypt-base.h and stddef.h, not crypt.h.
* crypt-symbols.h: Based on configure results, conditionally
include sys/cdefs.h and define __THROW and __nonnull.
* test-crypt-bcrypt.c, test-crypt-des.c, test-crypt-md5.c
* test-crypt-sha256.c, test-crypt-sha512.c, test-gensalt.c
* test-des-obsolete.c: Include crypt-base.h, not crypt.h.
* crypt-obsolete.h: Include crypt-base.h, not crypt.h.
Remove extern "C" wrapper and all uses of __THROW; this header is
not installed and never used from C++.
* gen-crypt-h.awk: New build script.
* Makefile.am (crypt.h): Generate from crypt-base.h and config.h,
using gen-crypt-h.awk.
* configure.ac: Add checks for sys/cdefs.h and the macros we
want from it.
(AC_CONFIG_SRCDIR): Key off crypt.c instead.
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -40,6 +40,7 @@ Makefile.in *.trs /alg-des-mktables /alg-des-tables.c +/crypt.h /crypt-symbol-vers.h /libcrypt.map /test-alg-des |