Fix the compiling error: \"Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.)\" under MacOS

This commit is contained in:
fmoatamr
2009-10-08 12:56:47 +02:00
parent 992e42acc1
commit ed159f7cbf

View File

@@ -36,6 +36,13 @@
#define cairo_private
#define HAVE_UINT64_T 1
/*for compatibility with MacOS*/
#ifndef HAVE_STDINT_H
#ifdef __APPLE__
#define HAVE_STDINT_H 1
#endif
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#elif HAVE_INTTYPES_H