Debian Codegraph @

cvd/internal/win.h

raw symbols SCIP
1 #ifndef CVD_INC_INTERNAL_WIN_H
2 #define CVD_INC_INTERNAL_WIN_H
3
4 // make sure to have all necessary definitions included, this requires min Windows 2000
5 #define _WIN32_WINNT 0x0500
6
7 // missing C99 define (C99 not supported in VC++)
8 #ifdef __MINGW32__
9 #include <stdint.h>
10
11 #else
12 typedef __int32 int32_t;
13
14 #endif
15 // avoid warnings about using old unsave versions of libc functions
16 #ifndef _CRT_SECURE_NO_WARNINGS
17 #define _CRT_SECURE_NO_WARNINGS
18 #endif
19
20 // avoid warnings about checked/unchecked iterators
21 #ifndef _SCL_SECURE_NO_WARNINGS
22 #define _SCL_SECURE_NO_WARNINGS
23 #endif
24
25 // to get M_PI, etc.
26 #define _USE_MATH_DEFINES
27
28 // don't include garbage
29 #define WINDOWS_LEAN_AND_MEAN
30
31 // don't define macros for min, max
32 #ifndef NOMINMAX
33 #define NOMINMAX
34 #endif
35 #endif