SDK: Fix compilation with Clang

Former-commit-id: bbe7ec821304dd13ac6640a1c1c7b654914cbf2e [formerly 67a6dba7a47490a3f39ac6c9c4a0bf853da63f60] [formerly d116a4c3af3782462a1305bd76a1a410a0075027 [formerly 418e3fc7090ada085deb039eb79b9c74df694666]]
Former-commit-id: 813f866bfcfd81cff799a2bd7b26ec71ada8e9ca [formerly 5cea6c36cbe5b8a73f1e4aecf86042be331ba424]
Former-commit-id: e04eb838630232088ba6f93ad1896228b86f949d
This commit is contained in:
Lynix 2016-10-04 17:57:47 +02:00
parent 64785dca17
commit bdc49b1eb3
1 changed files with 7 additions and 20 deletions

View File

@ -32,27 +32,14 @@
#define NDK_VERSION_MINOR 1
// Importation/Exportation of the API
#if defined(NAZARA_PLATFORM_WINDOWS)
#if !defined(NAZARA_STATIC)
#ifdef NDK_BUILD
#define NDK_API NAZARA_EXPORT
#else
#define NDK_API NAZARA_IMPORT
#endif
#else
#define NDK_API
#endif
#elif defined(NAZARA_PLATFORM_LINUX)
#if !defined(NAZARA_STATIC) && defined(NAZARA_COMPILER_GCC)
#define NDK_API NAZARA_EXPORT
#else
#define NDK_API
#endif
#if defined(NAZARA_STATIC)
#define #define NDK_API
#else
// To comment to force a compilation
#error This operating system is not fully supported by the Nazara Development Kit
#define NDK_API
#ifdef NDK_BUILD
#define NDK_API NAZARA_EXPORT
#else
#define NDK_API NAZARA_IMPORT
#endif
#endif
namespace Ndk