[build] Work around autoconf void* -> VOID__ name conversion bug.

The autoconf shipping with OpenBSD 4.5 converts sizeof(void*)
to SIZEOF_VOID__ rather than SIZEOF_VOID_P.  Work around that
by defining SIZEOF_VOID_P if required.
This commit is contained in:
M Joonas Pihlaja 2009-09-13 17:56:56 -06:00
parent 12470fd701
commit 1c7ac6c47a
2 changed files with 8 additions and 0 deletions

View file

@ -43,6 +43,10 @@
#include "config.h"
#endif
#if !defined(SIZEOF_VOID_P) && defined(SIZEOF_VOID__)
# define SIZEOF_VOID_P SIZEOF_VOID__
#endif
CAIRO_BEGIN_DECLS
#if HAVE_INTEL_ATOMIC_PRIMITIVES

View file

@ -22,6 +22,10 @@
#include "config.h"
#endif
#if !defined(SIZEOF_VOID_P) && defined(SIZEOF_VOID__)
# define SIZEOF_VOID_P SIZEOF_VOID__
#endif
#include <dlfcn.h>
#include <stdbool.h>
#include <stdint.h>