Serious-Engine/Sources/Engine/Base/Base.h

48 lines
1.3 KiB
C
Raw Normal View History

2016-03-11 14:57:17 +01:00
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
/*
* rcg10042001 In case these don't get defined in the project file, try to
* catch them here...
*/
#ifdef _MSC_VER
#ifndef PLATFORM_WIN32
#define PLATFORM_WIN32
#endif
#ifndef PRAGMA_ONCE
#define PRAGMA_ONCE
#endif
// disable problematic warnings
#pragma warning(disable: 4251) // dll interfacing problems
#pragma warning(disable: 4275) // dll interfacing problems
#pragma warning(disable: 4018) // signed/unsigned mismatch
#pragma warning(disable: 4244) // type conversion warnings
#pragma warning(disable: 4284) // using -> for UDT
#pragma warning(disable: 4355) // 'this' : used in base member initializer list
#pragma warning(disable: 4660) // template-class specialization is already instantiated
#pragma warning(disable: 4723) // potential divide by 0
// define engine api exporting declaration specifiers
#ifdef ENGINE_EXPORTS
#define ENGINE_API __declspec(dllexport)
#else
#define ENGINE_API __declspec(dllimport)
#ifdef NDEBUG
#pragma comment(lib, "Engine.lib")
#else
#pragma comment(lib, "EngineD.lib")
#endif
#endif
#endif // defined _MSC_VER
#ifdef PLATFORM_UNIX /* rcg10042001 */
#define ENGINE_API
#endif