Added -Wno-unitialized to makefile; this is usually the cause of pointless build failures
3 * ===============================================================
4 * SourceMod, Copyright (C) 2004-2007 AlliedModders LLC.
6 * ===============================================================
8 * This file is part of the SourceMod/SourcePawn SDK. This file may only be used
9 * or modified under the Terms and Conditions of its License Agreement, which is found
10 * in LICENSE.txt. The Terms and Conditions for making SourceMod extensions/plugins
11 * may change at any time. To view the latest information, see:
12 * http://www.sourcemod.net/license.php
17 #ifndef _INCLUDE_SOURCEMOD_PLATFORM_H_
18 #define _INCLUDE_SOURCEMOD_PLATFORM_H_
22 * @brief Contains platform-specific macros for abstraction.
25 #if defined WIN32 || defined WIN64
26 #define PLATFORM_WINDOWS
27 #if !defined WIN32_LEAN_AND_MEAN
28 #define WIN32_LEAN_AND_MEAN
31 #define snprintf _snprintf
36 #define strcasecmp strcmpi
37 #define strncasecmp strnicmp
40 #define PLATFORM_LIB_EXT "dll"
41 #define PLATFORM_MAX_PATH MAX_PATH
42 #define PLATFORM_SEP_CHAR '\\'
43 #define PLATFORM_SEP_ALTCHAR '/'
44 #define PLATFORM_EXTERN_C extern "C" __declspec(dllexport)
45 #elif defined __linux__
46 #define PLATFORM_LINUX
47 #define PLATFORM_POSIX
53 #define PLATFORM_MAX_PATH PATH_MAX
54 #define PLATFORM_LIB_EXT "so"
55 #define PLATFORM_SEP_CHAR '/'
56 #define PLATFORM_SEP_ALTCHAR '\\'
57 #define PLATFORM_EXTERN_C extern "C" __attribute__((visibility("default")))
60 #if !defined SOURCEMOD_BUILD
61 #define SOURCEMOD_BUILD
64 #endif //_INCLUDE_SOURCEMOD_PLATFORM_H_