summaryrefslogtreecommitdiff
path: root/cad/abc/files/patch-src_misc_util_abc__global.h
blob: 3d3057d045267fa18244a432a074abd8cc828c05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/misc/util/abc_global.h.orig	2018-04-10 14:33:45 UTC
+++ src/misc/util/abc_global.h
@@ -97,6 +97,15 @@ ABC_NAMESPACE_HEADER_START
 ////////////////////////////////////////////////////////////////////////
 
 #ifdef ABC_USE_STDINT_H
+
+#ifndef __STDC_LIMIT_MACROS
+  #define __STDC_LIMIT_MACROS
+#endif
+
+#ifndef __STDC_CONSTANT_MACROS
+  #define __STDC_CONSTANT_MACROS
+#endif
+
 // If there is stdint.h, assume this is a reasonably-modern platform that
 // would also have stddef.h and limits.h
 #include <limits.h>