summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-09-21 16:35:55 -0400
committerZack Weinberg <zackw@panix.com>2017-09-21 16:35:55 -0400
commit2df88d174d1b6b4816ad69e189cbb26db18a3aec (patch)
treede572fa3c082ee6dda6bc19a6a8854ceb654c616 /.gitignore
parent8881fed171b160354f8c57d64530fe37cd5cff66 (diff)
downloadlibxcrypt-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--.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 0446357..83f8d4d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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