2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 23.01.16.
|
|
|
|
//
|
|
|
|
|
2016-11-17 05:18:35 +00:00
|
|
|
#ifndef PLATFORM_HPP
|
|
|
|
#define PLATFORM_HPP
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2018-12-24 20:36:57 +00:00
|
|
|
#ifdef _MSC_VER
|
2016-01-12 03:41:44 +00:00
|
|
|
#ifdef _M_X86
|
|
|
|
#define ARCH_X86
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2018-12-24 20:36:57 +00:00
|
|
|
#ifdef __GNUC__
|
2016-01-12 03:41:44 +00:00
|
|
|
#ifdef __i386__
|
|
|
|
#define ARCH_X86
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2018-12-24 20:36:57 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
#define EXPORT_APIFUNCTION extern "C" __declspec(dllexport)
|
|
|
|
#define CDECL __cdecl
|
|
|
|
#else
|
|
|
|
#define EXPORT_APIFUNCTION extern "C"
|
|
|
|
#define CDECL
|
|
|
|
#endif
|
|
|
|
|
2016-11-17 05:18:35 +00:00
|
|
|
#endif //PLATFORM_HPP
|