4coder/4ed_os_comp_cracking.h

52 lines
834 B
C
Raw Normal View History

2017-04-01 06:15:33 +00:00
/*
* Mr. 4th Dimention - Allen Webster
*
* 31.03.2017
*
* OS & Compiler cracking for 4coder
*
*/
// TOP
#if !defined(FRED_OS_COMP_CRACKING_H)
#define FRED_OS_COMP_CRACKING_H
#if defined(_MSC_VER)
# define IS_CL
// NOTE(allen): I suspect snprintf is defined in VS 2015 (I test on 2017)
#if _MSC_VER <= 1800
2017-04-01 06:15:33 +00:00
# define snprintf _snprintf
#endif
2017-04-01 06:15:33 +00:00
# if defined(_WIN32)
# define IS_WINDOWS
# pragma comment(lib, "Kernel32.lib")
# else
# error This compiler/platform combo is not supported yet
# endif
#elif defined(__GNUC__) || defined(__GNUG__)
# define IS_GCC
# if defined(__gnu_linux__)
# define IS_LINUX
# elif defined(__APPLE__) && defined(__MACH__)
# define IS_MAC
#else
2017-04-01 06:15:33 +00:00
# error This compiler/platform combo is not supported yet
# endif
#else
#error This compiler is not supported yet
#endif
#endif
// BOTTOM