summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKalev Lember <kalevlember@gmail.com>2012-03-28 19:47:24 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-29 21:13:21 +0100
commitd18542b735bb777b444152f0ef06de18993635bd (patch)
tree87c974735fbcc8cca0e35538ed08742e6f733b41 /util
parenta965b0f95fdeb567f7ccb51f7c8c47735a61e2d9 (diff)
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.
Diffstat (limited to 'util')
-rw-r--r--util/cairo-missing/cairo-missing.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cairo-missing/cairo-missing.h b/util/cairo-missing/cairo-missing.h
index ccb85fa46..7e4f0a37d 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