fixed problem with 'boolean' typedef when compiling with MinGW environment
[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 //                  http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // windows.h
10 // ============================================================================
11
12 #ifndef WINDOWS_H
13 #define WINDOWS_H
14
15 #include <shlobj.h>
16
17
18 /* some symbols are already defined on Windows */
19 typedef int boolean_internal;
20 #define boolean boolean_internal
21
22 #define CreateBitmap CreateBitmap_internal
23 #define GetPixel GetPixel_internal
24 #define CloseWindow CloseWindow_internal
25 #define FloodFill FloodFill_internal
26
27 #ifdef LoadImage
28 #undef LoadImage
29 #define LoadImage LoadImage_internal
30 #endif
31
32 #ifdef PlaySound
33 #undef PlaySound
34 #define PlaySound PlaySound_internal
35 #endif
36
37 #ifdef DrawText
38 #undef DrawText
39 #define DrawText DrawText_internal
40 #endif
41
42 #endif /* WINDOWS_H */