summaryrefslogtreecommitdiffstats
path: root/src/cairo-1-ssize-t-defined.patch
blob: bf29d918d8089a44facca68976464792d7d4c580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This file is part of MXE. See LICENSE.md for licensing 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>