TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
tb_platform.hpp
1 
9 #ifndef TurtleBrains_Platform_hpp
10 #define TurtleBrains_Platform_hpp
11 
12 #include <turtle_brains/core/tb_configuration.hpp>
13 
14 #if defined(tb_windows)
15  #pragma warning(push)
16  #pragma warning(disable: 4091)
17 
18  #define NOMINMAX
19  //Cannot use LEAN_AND_MEAN because (at least) OPENFILENAME stuff needs it.
20 #if defined(tb_with_networking)
21  #include <WinSock2.h>
22 #endif /* tb_with_networking */
23  #include <windows.h>
24  #include <windowsx.h> //For GET_X_LAPARAM
25  #include <shlobj.h>
26  #include <direct.h>
27 
28  #if defined(min)
29  #undef min
30  #endif
31 
32  #if defined(max)
33  #undef max
34  #endif
35  #pragma warning(pop)
36 #elif defined(tb_macos)
37 #elif defined(tb_ios)
38 #elif defined(tb_linux)
39  #include <X11/X.h>
40  #include <X11/Xlib.h>
41  #include <X11/XKBlib.h>
42  #include <X11/Xutil.h>
43  #include <X11/Xatom.h>
44 
45  #if defined(Always)
46  #undef Always
47  #endif
48 #elif defined(tb_web)
49 
50 #else
51  #error This configuration is currently unsupported by TurtleBrains.
52 #endif
53 
54 #endif /* TurtleBrains_Platform_hpp */