diff --git a/core/smn_core.cpp b/core/smn_core.cpp index 7733b85df..6c912ba21 100644 --- a/core/smn_core.cpp +++ b/core/smn_core.cpp @@ -114,8 +114,6 @@ void _ignore_invalid_parameter( } #endif -#include "sm_srvcmds.h" - static cell_t FormatTime(IPluginContext *pContext, const cell_t *params) { char *format, *buffer; diff --git a/plugins/include/sourcemod.inc b/plugins/include/sourcemod.inc index 3badbb4d0..c07ae657c 100644 --- a/plugins/include/sourcemod.inc +++ b/plugins/include/sourcemod.inc @@ -290,13 +290,17 @@ native LogError(const String:format[], any:...); native GetTime(bigStamp[2]={0,0}); /** - * Format date and time. + * Produces a date and/or time string value for a timestamp. + * + * See this URL for valid parameters: + * http://opengroup.org/onlinepubs/007908799/xsh/strftime.html * * @param buffer Destination string buffer. * @param maxlength Maximum length of output string buffer. * @param format Formatting rules. * @param stamp Optional time stamp. * @noreturn + * @error Buffer too small or invalid time format. */ native FormatTime(String:buffer[], maxlength, const String:format[], stamp=-1); diff --git a/public/sm_platform.h b/public/sm_platform.h index 8b23795a4..7a8405e3d 100644 --- a/public/sm_platform.h +++ b/public/sm_platform.h @@ -57,6 +57,9 @@ #define PLATFORM_SEP_CHAR '\\' #define PLATFORM_SEP_ALTCHAR '/' #define PLATFORM_EXTERN_C extern "C" __declspec(dllexport) +#if defined _MSC_VER && _MSC_VER >= 1400 +#define SUBPLATFORM_SECURECRT +#endif #elif defined __linux__ #define PLATFORM_LINUX #define PLATFORM_POSIX