TGUI  v0.5.2
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Config.hpp
1 //
3 // TGUI - Texus's Graphical User Interface
4 // Copyright (C) 2012 Bruno Van de Velde (VDV_B@hotmail.com)
5 //
6 // This software is provided 'as-is', without any express or implied warranty.
7 // In no event will the authors be held liable for any damages arising from the use of this software.
8 //
9 // Permission is granted to anyone to use this software for any purpose,
10 // including commercial applications, and to alter it and redistribute it freely,
11 // subject to the following restrictions:
12 //
13 // 1. The origin of this software must not be misrepresented;
14 // you must not claim that you wrote the original software.
15 // If you use this software in a product, an acknowledgment
16 // in the product documentation would be appreciated but is not required.
17 //
18 // 2. Altered source versions must be plainly marked as such,
19 // and must not be misrepresented as being the original software.
20 //
21 // 3. This notice may not be removed or altered from any source distribution.
22 //
24 
25 #ifndef _TGUI_CONFIG_INCLUDED_
26 #define _TGUI_CONFIG_INCLUDED_
27 
28 
29 #ifndef SFML_STATIC
30 
31  #ifdef SFML_SYSTEM_WINDOWS
32 
33  // Windows compilers need specific (and different) keywords for export and import
34  #ifdef tgui_EXPORTS
35  #define TGUI_API __declspec(dllexport)
36  #else
37  #define TGUI_API __declspec(dllimport)
38  #endif
39 
40  // For Visual C++ compilers, we also need to turn off this annoying C4251 warning
41  #ifdef _MSC_VER
42  #pragma warning(disable: 4251)
43  #endif
44 
45  #else // Linux, FreeBSD, Mac OS X
46 
47  // GCC 4 has special keywords for showing/hidding symbols
48  #if __GNUC__ >= 4
49  #define TGUI_API __attribute__ ((__visibility__ ("default")))
50  #else
51  #define TGUI_API
52  #endif
53 
54  #endif
55 
56 #else
57 
58  // Static build doesn't need import/export macros
59  #define TGUI_API
60  #define TGUI_API
61 
62 #endif
63 
64 
65 // Version of the library
66 #define TGUI_VERSION_MAJOR 0
67 #define TGUI_VERSION_MINOR 5
68 #define TGUI_VERSION_PATCH 2
69 
70 
71 #endif //_TGUI_CONFIG_INCLUDED_