r103 was incomplete. It changed the checks in the configure script (and

accidentally introduced a no-op line), but did not change the checks in
the header, so we ended up always using our own [bl]e{32,64}{enc,dec}.
This commit is contained in:
Dag-Erling Smørgrav 2014-12-20 00:26:37 +00:00 committed by des
parent 20dab3e342
commit 8ef2266a4b
2 changed files with 8 additions and 9 deletions

View file

@ -43,7 +43,6 @@ AC_CHECK_DECLS([be32enc, be32dec, le32enc, le32dec,
#include <endian.h> #include <endian.h>
#endif #endif
]]) ]])
AC_CHECK_DECLS([])
AC_CHECK_FUNCS([strlcat strlcmp strlcpy]) AC_CHECK_FUNCS([strlcat strlcmp strlcpy])
# For tracing allocations in unit tests # For tracing allocations in unit tests

View file

@ -38,28 +38,28 @@
#include <endian.h> #include <endian.h>
#endif #endif
#ifndef HAVE_BE32ENC #ifndef HAVE_DECL_BE32ENC
#define be32enc cryb_be32enc #define be32enc cryb_be32enc
#endif #endif
#ifndef HAVE_BE32DEC #ifndef HAVE_DECL_BE32DEC
#define be32dec cryb_be32dec #define be32dec cryb_be32dec
#endif #endif
#ifndef HAVE_BE64ENC #ifndef HAVE_DECL_BE64ENC
#define be64enc cryb_be64enc #define be64enc cryb_be64enc
#endif #endif
#ifndef HAVE_BE64DEC #ifndef HAVE_DECL_BE64DEC
#define be64dec cryb_be64dec #define be64dec cryb_be64dec
#endif #endif
#ifndef HAVE_LE32ENC #ifndef HAVE_DECL_LE32ENC
#define le32enc cryb_le32enc #define le32enc cryb_le32enc
#endif #endif
#ifndef HAVE_LE32DEC #ifndef HAVE_DECL_LE32DEC
#define le32dec cryb_le32dec #define le32dec cryb_le32dec
#endif #endif
#ifndef HAVE_LE64ENC #ifndef HAVE_DECL_LE64ENC
#define le64enc cryb_le64enc #define le64enc cryb_le64enc
#endif #endif
#ifndef HAVE_LE64DEC #ifndef HAVE_DECL_LE64DEC
#define le64dec cryb_le64dec #define le64dec cryb_le64dec
#endif #endif