Fix the compiling error: \"Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.)\" under MacOS
authorfmoatamr
Thu, 08 Oct 2009 12:56:47 +0200
changeset 5386 e989563ab376
parent 5385 1d7cf96ce5bf
child 5387 52b6b55635c4
child 5715 e84ad4735c4b
Fix the compiling error: \"Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.)\" under MacOS
src/simulator/cairo-wideint-private.h
--- a/src/simulator/cairo-wideint-private.h	Thu Oct 08 13:53:21 2009 +0400
+++ b/src/simulator/cairo-wideint-private.h	Thu Oct 08 12:56:47 2009 +0200
@@ -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