[cairo] [PATCH] win32: Avoid redefining ssize_t
Kalev Lember
kalevlember at gmail.com
Wed Mar 28 09:47:24 PDT 2012
... if it's already defined by system headers. mingw-w64 includes a
ssize_t definition, so we'll have to make sure not to redefine it in
that case.
---
util/cairo-missing/cairo-missing.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util/cairo-missing/cairo-missing.h b/util/cairo-missing/cairo-missing.h
index ccb85fa..7e4f0a3 100644
--- a/util/cairo-missing/cairo-missing.h
+++ b/util/cairo-missing/cairo-missing.h
@@ -41,8 +41,10 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#ifndef _SSIZE_T_DEFINED
typedef SSIZE_T ssize_t;
#endif
+#endif
#ifndef HAVE_GETLINE
cairo_private ssize_t
--
1.7.9.3
More information about the cairo
mailing list