changed function parameter handling (with same functionality)
[rocksndiamonds.git] / src / libgame / windows.h
1 // ============================================================================
2 // Artsoft Retro-Game Library
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
5 //                  Holger Schemel
6 //                  info@artsoft.org
7 //                  https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // windows.h
10 // ============================================================================
11
12 #ifndef WINDOWS_H
13 #define WINDOWS_H
14
15 // prevent including lots of conflicting macros
16 #define WIN32_LEAN_AND_MEAN
17
18 #include <shlobj.h>
19
20
21 // some symbols are already defined on Windows
22 typedef int boolean_internal;
23 #define boolean boolean_internal
24
25 #define CreateBitmap CreateBitmap_internal
26 #define GetPixel GetPixel_internal
27 #define CloseWindow CloseWindow_internal
28 #define FloodFill FloodFill_internal
29
30 #ifdef LoadImage
31 #undef LoadImage
32 #define LoadImage LoadImage_internal
33 #endif
34
35 #ifdef PlaySound
36 #undef PlaySound
37 #define PlaySound PlaySound_internal
38 #endif
39
40 #ifdef DrawText
41 #undef DrawText
42 #define DrawText DrawText_internal
43 #endif
44
45 #endif // WINDOWS_H