Go to the documentation of this file.
7#ifndef MYGUI_PLATFORM_H_
8#define MYGUI_PLATFORM_H_
11#define MYGUI_PLATFORM_WIN32 1
12#define MYGUI_PLATFORM_LINUX 2
13#define MYGUI_PLATFORM_APPLE 3
16#define MYGUI_COMPILER_MSVC 1
17#define MYGUI_COMPILER_GNUC 2
21#if defined (__WIN32__) || defined (_WIN32)
22# define MYGUI_PLATFORM MYGUI_PLATFORM_WIN32
23#elif defined (__APPLE_CC__)
24# define MYGUI_PLATFORM MYGUI_PLATFORM_APPLE
26# define MYGUI_PLATFORM MYGUI_PLATFORM_LINUX
30#if defined( _MSC_VER )
31# define MYGUI_COMPILER MYGUI_COMPILER_MSVC
32# define MYGUI_COMP_VER _MSC_VER
34#elif defined( __GNUC__ )
35# define MYGUI_COMPILER MYGUI_COMPILER_GNUC
36# define MYGUI_COMP_VER (((__GNUC__)*100) + \
37 (__GNUC_MINOR__*10) + \
40# pragma error "Unknown compiler! Stop building!!!"
44#if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
46# if defined( MYGUI_STATIC )
48# elif defined( MYGUI_BUILD )
49# define MYGUI_EXPORT __declspec( dllexport )
51# if defined( __MINGW32__ )
54# define MYGUI_EXPORT __declspec( dllimport )
58# if defined( MYGUI_STATIC )
59# define MYGUI_EXPORT_DLL
60# elif defined( MYGUI_BUILD_DLL )
61# define MYGUI_EXPORT_DLL __declspec( dllexport )
63# if defined( __MINGW32__ )
64# define MYGUI_EXPORT_DLL
66# define MYGUI_EXPORT_DLL __declspec( dllimport )
72# define MYGUI_DEBUG_MODE 1
74# define MYGUI_DEBUG_MODE 0
80#if MYGUI_PLATFORM == MYGUI_PLATFORM_LINUX || MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE
85# ifdef MYGUI_GCC_VISIBILITY
86# define MYGUI_EXPORT __attribute__ ((visibility("default")))
87# define MYGUI_EXPORT_DLL __attribute__ ((visibility("default")))
90# define MYGUI_EXPORT_DLL
98# define MYGUI_DEBUG_MODE 1
100# define MYGUI_DEBUG_MODE 0