[cairo] [PATCH 1/5] script: Fixes for Visual C++.

Zoxc zoxc32 at gmail.com
Thu Jun 24 11:31:51 PDT 2010


---
 util/cairo-script/cairo-script-private.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/util/cairo-script/cairo-script-private.h b/util/cairo-script/cairo-script-private.h
index 64dd155..6732d94 100644
--- a/util/cairo-script/cairo-script-private.h
+++ b/util/cairo-script/cairo-script-private.h
@@ -55,6 +55,11 @@
 #define NULL (void *) 0
 #endif
 
+#ifdef _MSC_VER
+#define inline __inline
+#define snprintf _snprintf
+#endif
+
 #if   HAVE_STDINT_H
 # include <stdint.h>
 #elif HAVE_INTTYPES_H
-- 
1.7.0.2.msysgit.0



More information about the cairo mailing list