mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-26 10:00:10 +01:00
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'
This commit is contained in:
parent
cbf11fa261
commit
00a5a13612
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue