From 00a5a136123cf2b66c5e8fc9fb5d20feffbd4dcd Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Wed, 15 Jun 2011 10:34:03 +0200 Subject: [PATCH] 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' --- boilerplate/cairo-boilerplate.h | 1 + 1 file changed, 1 insertion(+) 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 #elif defined(_MSC_VER) +# include typedef __int8 int8_t; typedef unsigned __int8 uint8_t; typedef __int16 int16_t;