summaryrefslogtreecommitdiffstats
path: root/src/cairo-1-ssize-t-defined.patch
blob: 3573c1d9c016f716c99713cb06bc86654af4fd3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
This file is part of MXE.
See index.html for further information.

Insist that ssize_t is defined.

diff --git a/util/cairo-missing/cairo-missing.h b/util/cairo-missing/cairo-missing.h
index 7e4f0a3..c20b869 100644
--- a/util/cairo-missing/cairo-missing.h
+++ b/util/cairo-missing/cairo-missing.h
@@ -37,6 +37,8 @@
 #include <string.h>
 #include <sys/types.h>
 
+#define _SSIZE_T_DEFINED 1
+
 #ifdef _WIN32
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>