summaryrefslogtreecommitdiff
path: root/src/cairo-compiler-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-01-20 02:56:26 -0500
committerBehdad Esfahbod <behdad@behdad.org>2008-01-20 02:56:26 -0500
commit3339c32b0aa44c4bae6e534f90d26aa342e3d717 (patch)
tree16f80b62af407c96c7344bf485c5c84cd75317df /src/cairo-compiler-private.h
parentac17ce0f89b494a404756c8d24b21a7fb354218e (diff)
downloadcairo-3339c32b0aa44c4bae6e534f90d26aa342e3d717.tar.gz
[cairoint.h] Move MSC inline macros into cairo-compiler-private.h
where they belong
Diffstat (limited to 'src/cairo-compiler-private.h')
-rw-r--r--src/cairo-compiler-private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cairo-compiler-private.h b/src/cairo-compiler-private.h
index 758cde5c5..1c6645e4a 100644
--- a/src/cairo-compiler-private.h
+++ b/src/cairo-compiler-private.h
@@ -111,6 +111,16 @@ CAIRO_BEGIN_DECLS
#define __attribute__(x)
#endif
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#undef inline
+#define inline __inline
+#endif
+
+#ifdef __STRICT_ANSI__
+#undef inline
+#define inline __inline__
+#endif
CAIRO_END_DECLS