Skip to content

Commit

Permalink
Fixed release compilation (sorry)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jul 30, 2018
1 parent 06355bd commit 457fe56
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/xrCore/_std_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <int count>
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 <int count>
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;
Expand Down Expand Up @@ -255,6 +243,18 @@ inline int __cdecl xr_sprintf(char (&destination)[count], LPCSTR format_string,
return result;
}
#endif // #ifndef MASTER_GOLD

template <int count>
inline int xr_strcpy(char(&destination)[count], LPCSTR source)
{
return xr_strcpy(destination, count, source);
}

template <int count>
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)
Expand Down

0 comments on commit 457fe56

Please sign in to comment.