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#elif defined( __GNUC__ )
33# define MYGUI_COMPILER MYGUI_COMPILER_GNUC
35# pragma error "Unknown compiler! Stop building!!!"
39#if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
41# if defined( MYGUI_STATIC )
43# elif defined( MYGUI_BUILD )
44# define MYGUI_EXPORT __declspec( dllexport )
46# if defined( __MINGW32__ )
49# define MYGUI_EXPORT __declspec( dllimport )
53# if defined( MYGUI_STATIC )
54# define MYGUI_EXPORT_DLL
55# elif defined( MYGUI_BUILD_DLL )
56# define MYGUI_EXPORT_DLL __declspec( dllexport )
58# if defined( __MINGW32__ )
59# define MYGUI_EXPORT_DLL
61# define MYGUI_EXPORT_DLL __declspec( dllimport )
68#if MYGUI_PLATFORM == MYGUI_PLATFORM_LINUX || MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE
73# ifdef MYGUI_GCC_VISIBILITY
74# define MYGUI_EXPORT __attribute__ ((visibility("default")))
75# define MYGUI_EXPORT_DLL __attribute__ ((visibility("default")))
78# define MYGUI_EXPORT_DLL
84# define MYGUI_DEBUG_MODE 1
86# define MYGUI_DEBUG_MODE 0