From 457fe56cfcf0a23955ce5e76bbc235f5e75ad1e9 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Mon, 30 Jul 2018 20:26:41 +0500 Subject: [PATCH] Fixed release compilation (sorry) --- src/xrCore/_std_extensions.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/xrCore/_std_extensions.h b/src/xrCore/_std_extensions.h index de00066c489..81e3e581457 100644 --- a/src/xrCore/_std_extensions.h +++ b/src/xrCore/_std_extensions.h @@ -179,23 +179,11 @@ inline int xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR so return strcpy_s(destination, destination_size, source); } -template -inline int xr_strcpy(char(&destination)[count], LPCSTR source) -{ - return xr_strcpy(destination, count, source); -} - inline int xr_strcat(LPSTR destination, size_t const buffer_size, LPCSTR source) { return strcat_s(destination, buffer_size, source); } -template -inline int xr_strcat(char(&destination)[count], LPCSTR source) -{ - return xr_strcat(destination, count, source); -} - inline int __cdecl xr_sprintf(LPSTR destination, size_t const buffer_size, LPCSTR format_string, ...) { va_list args; @@ -255,6 +243,18 @@ inline int __cdecl xr_sprintf(char (&destination)[count], LPCSTR format_string, return result; } #endif // #ifndef MASTER_GOLD + +template +inline int xr_strcpy(char(&destination)[count], LPCSTR source) +{ + return xr_strcpy(destination, count, source); +} + +template +inline int xr_strcat(char(&destination)[count], LPCSTR source) +{ + return xr_strcat(destination, count, source); +} //#endif // #ifndef _EDITOR inline void MemFill32(void* dst, u32 value, size_t dstSize)