1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #if !defined(_STDAFX_H) |
3 #ifndef STDAFX_H |
4 #define _STDAFX_H |
4 #define STDAFX_H |
5 |
5 |
6 #if defined(_MSC_VER) |
6 #if defined(_MSC_VER) |
7 #pragma once |
7 #pragma once |
8 |
8 |
9 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
9 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
10 #pragma warning(disable: 4100) // parameter not used |
10 #pragma warning(disable: 4018) // 'expression' : signed/unsigned mismatch |
11 #pragma warning(disable: 4244) // conversion |
11 #pragma warning(disable: 4100) // 'identifier' : unreferenced formal parameter |
12 #pragma warning(disable: 4245) // conversion |
12 #pragma warning(disable: 4127) // conditional expression is constant |
13 #pragma warning(disable: 4305) // 'initializing' : truncation from 'const int ' to 'char ' |
13 #pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union |
14 #pragma warning(disable: 4018) // warning C4018: '==' : signed/unsigned mismatch |
14 #pragma warning(disable: 4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data |
15 #pragma warning(disable: 4201) // nameless union |
15 #pragma warning(disable: 4245) // 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch |
16 #pragma warning(disable: 4514) // removed unref inline |
16 #pragma warning(disable: 4276) // 'fucntion' : no prototype provided; assumed no parameters (MSVC BUG???) |
17 #pragma warning(disable: 4127) // constant conditional expression |
17 #pragma warning(disable: 4305) // 'identifier' : truncation from 'type1' to 'type2' |
18 #pragma warning(disable: 4276) // MSVC BUG??? Complains about function body not declared when using function pointers |
18 #pragma warning(disable: 4514) // 'function' : unreferenced inline function has been removed |
19 #pragma warning(disable: 4761) // warning C4761: integral size mismatch in argument; conversion supplied |
19 #pragma warning(disable: 4761) // integral size mismatch in argument : conversion supplied |
20 #endif |
20 #endif |
21 |
21 |
22 #include <stdio.h> |
22 #include <stdio.h> |
23 #include <string.h> |
23 #include <string.h> |
24 #include <stdlib.h> |
24 #include <stdlib.h> |