summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-06-15 10:34:03 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-06-20 10:24:20 +0200
commit00a5a136123cf2b66c5e8fc9fb5d20feffbd4dcd (patch)
treeb7599b14c7821ba11074b6b9c5e56ad1260f9639 /boilerplate
parentcbf11fa26109a6c725c7d7a356d4acc16a7be0e2 (diff)
boilerplate: Silence MSVC warnings
On Win32 INT_MIN/MAX macros are defined in stdint.h, which makes MSVC complain about the following redefinitions: ...\stdint.h(73) : warning C4005: 'INT16_MIN' : macro redefinition ...\boilerplate\cairo-boilerplate.h(64) : see previous definition of 'INT16_MIN' ...\stdint.h(77) : warning C4005: 'INT16_MAX' : macro redefinition ...\cairo-boilerplate.h(67) : see previous definition of 'INT16_MAX' ...\stdint.h(80) : warning C4005: 'UINT16_MAX' : macro redefinition ...\boilerplate\cairo-boilerplate.h(70) : see previous definition of 'UINT16_MAX'
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h
index d145a1e1c..061522193 100644
--- a/boilerplate/cairo-boilerplate.h
+++ b/boilerplate/cairo-boilerplate.h
@@ -45,6 +45,7 @@
#elif HAVE_SYS_INT_TYPES_H
# include <sys/int_types.h>
#elif defined(_MSC_VER)
+# include <stdint.h>
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;