Fix Apple-style universal build (bb #1988).

We defined WORDS_BIGENDIAN to 0 if it wasn't defined, however that doesn't work with Apple universal
builds, since we don't know the endianness at configure time!
So add the ifndef WORDS_BIGNENDIAN -> define WORDS_BIGENDIAN 0 logic to
platform.h.
0.96
Török Edvin 15 years ago
parent 331cce0add
commit 6f994cac4d
  1. 4
      ChangeLog
  2. 4
      configure
  3. 3
      configure.in
  4. 4
      platform.h.in
  5. 2
      win32/platform.h

@ -1,3 +1,7 @@
Fri Apr 23 21:38:19 EEST 2010 (edwin)
-------------------------------------
* configure: fix Apple-style universal build (bb #1988).
Thu Apr 22 22:34:52 CEST 2010 (acab)
------------------------------------
* libclamav/fmap.c: downgrade warning when the kernel doesn't want a map back

4
configure vendored

@ -12766,10 +12766,6 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
esac
if test $ac_cv_c_bigendian = no; then
$as_echo "#define WORDS_BIGENDIAN 0" >>confdefs.h
fi
LIBM=
case $host in

@ -78,9 +78,6 @@ AC_C_CONST
AC_C_INLINE
AC_C_FPU_BIGENDIAN
AC_C_BIGENDIAN
if test $ac_cv_c_bigendian = no; then
m4_default([], [AC_DEFINE([WORDS_BIGENDIAN], 0)])
fi
LT_LIB_M

@ -40,4 +40,6 @@ typedef unsigned int in_addr_t;
/* Nothing is safe in windows, not even open */
#define safe_open open
#ifndef WORDS_BIGENDIAN
#define WORDS_BIGENDIAN 0
#endif

@ -108,4 +108,4 @@ int real_main(int, char**);
#define main main(int argc, char **argv) { _setmode(_fileno(stdin), _O_BINARY); w32_glob(&argc, &argv); return real_main(argc, argv); }; int real_main
#endif /* __PLATFORM_H */
#define WORDS_BIGENDIAN 0

Loading…
Cancel
Save