ReplicaNet and RNLobby  1
PlatformConfig.h
1 /* START_LICENSE_HEADER
2 
3 Copyright (C) 2000 Martin Piper, original design and program code
4 Copyright (C) 2001 Replica Software
5 
6 This program file is copyright (C) Replica Software and can only be used under license.
7 For more information visit: http://www.replicanet.com/
8 Or email: info@replicanet.com
9 
10 END_LICENSE_HEADER */
11 #ifndef _RNPLATFORMCONFIG_H_
12 #define _RNPLATFORMCONFIG_H_
13 
14 // This pragma disables a harmless warning in the older Microsoft compiler. This can be safely ignored. See bug ref: C4786
15 #ifdef _MSC_VER
16 #pragma warning (disable : 4786)
17 #endif
18 
19 // Preprocessor defines for supported platforms:
20 // _WIN32 Windows 32/64 bit builds
21 // __MINGW32__ MinGW for Windows
22 // __linux__ Linux
23 // __unix__ Unix
24 // _XBOX Microsoft Xbox 360, also has _WIN32 defined.
25 // _PS2 Sony PlayStation 2
26 // __APPLE__ Apple products using Xcode. eg. iOS, iPhone, iPad etc
27 // __ANDROID__ Android NDK
28 // IW_SDK Marmalade SDK. Multiple platforms.
29 
30 // Unix/Linux like platforms can be grouped together into one define for most cases
31 #if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(__ANDROID__) || defined(IW_SDK)
32 #define RN_UNIX_LIKE
33 #endif
34 
35 // Define RN_EXCEPTIONS_IGNORE to ignore this check
36 #if !defined(RN_EXCEPTIONS_IGNORE)
37 // Platforms that have exceptions enabled by default
38 #if defined(_WIN32) || defined(__MINGW32__) || defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(__ANDROID__)
39 #define RN_EXCEPTIONS_ENABLED
40 #endif
41 #endif
42 
43 #endif