[cairo-commit] util/cairo-missing
Chris Wilson
ickle at kemper.freedesktop.org
Thu Mar 29 13:14:50 PDT 2012
util/cairo-missing/cairo-missing.h | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit d18542b735bb777b444152f0ef06de18993635bd
Author: Kalev Lember <kalevlember at gmail.com>
Date: Wed Mar 28 19:47:24 2012 +0300
win32: Avoid redefining ssize_t
... 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.
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
More information about the cairo-commit
mailing list