]> git.mxchange.org Git - simgear.git/blob - simgear/canvas/ShivaVG/src/shConfig.h
Update for OpenSceneGraph 3.3.2 API changes.
[simgear.git] / simgear / canvas / ShivaVG / src / shConfig.h
1
2 #ifndef __SHCONFIG_H
3 #define __SHCONFIG_H
4
5 ////////////////////////////////////////////////////////////
6 // Identify the operating system
7 ////////////////////////////////////////////////////////////
8 #if defined(_WIN32) || defined(__WIN32__)
9
10     // Windows
11     #define VG_API_WINDOWS
12     #ifndef WIN32_LEAN_AND_MEAN
13         #define WIN32_LEAN_AND_MEAN
14     #endif
15     #ifndef NOMINMAX
16         #define NOMINMAX
17     #endif
18
19 #elif defined(linux) || defined(__linux)
20
21     // Linux
22     #define VG_API_LINUX
23
24 #elif defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)
25
26     // MacOS
27     #define VG_API_MACOSX
28
29 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
30
31     // FreeBSD
32     #define VG_API_FREEBSD
33
34 #else
35
36     // Unsupported system
37     #error This operating system is not supported by SFML library
38
39 #endif
40
41 // We currently do not support using images (inside paths). If we were going to
42 // use it loading and unloading needs to happen within OpenSceneGraph to handle
43 // synchronization correctly in multithreading mode.
44 #define SH_NO_IMAGE
45
46 #endif // __SHCONFIG_H