From ed159f7cbffb83d366e4e9778b102f7adc56ca97 Mon Sep 17 00:00:00 2001 From: fmoatamr Date: Thu, 8 Oct 2009 12:56:47 +0200 Subject: [PATCH] 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/simulator/cairo-wideint-private.h b/src/simulator/cairo-wideint-private.h index b8b806d7d..6c8358b9f 100644 --- a/src/simulator/cairo-wideint-private.h +++ b/src/simulator/cairo-wideint-private.h @@ -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 #elif HAVE_INTTYPES_H