Unsetting MAGICKCORE_HAVE_SYS_TIMEB_H
Posted: 2016-12-21T15:44:43-07:00
I try to compile ImageMagick with an Android/arm64 toolchain from Crystax NDK, that has no <sys/timeb.h>. Now I found MAGICKCORE_HAVE_SYS_TIMEB_H, which should enable me to say this header is not available – I guess.
Greping over the source shows 3 places where MAGICKCORE_HAVE_SYS_TIMEB_H is used:
Is it true that defining MAGICKCORE_HAVE_SYS_TIMEB_H=0 should disable including <sys/timeb.h>? If so, I think we have the problem that it is still defined because defined(MAGICKCORE_HAVE_SYS_TIMEB_H) is true.
Greping over the source shows 3 places where MAGICKCORE_HAVE_SYS_TIMEB_H is used:
Code: Select all
./MagickWand/studio.h-# include <sys/types.h>
./MagickWand/studio.h-# include <sys/stat.h>
./MagickWand/studio.h:# if defined(MAGICKCORE_HAVE_SYS_TIMEB_H)
./MagickWand/studio.h-# include <sys/timeb.h>
./MagickWand/studio.h-# endif
--
./MagickCore/studio.h-# include <sys/types.h>
./MagickCore/studio.h-# include <sys/stat.h>
./MagickCore/studio.h:# if defined(MAGICKCORE_HAVE_SYS_TIMEB_H)
./MagickCore/studio.h-# include <sys/timeb.h>
./MagickCore/studio.h-# endif
--
./MagickCore/magick-baseconfig.h-
./MagickCore/magick-baseconfig.h-/* Define to 1 if you have the <sys/timeb.h> header file. */
./MagickCore/magick-baseconfig.h:#ifndef MAGICKCORE_HAVE_SYS_TIMEB_H
./MagickCore/magick-baseconfig.h:#define MAGICKCORE_HAVE_SYS_TIMEB_H 1
./MagickCore/magick-baseconfig.h-#endif
./MagickCore/magick-baseconfig.h-