diff --git a/include/freerdp/utils/print.h b/include/freerdp/utils/print.h index 7bfafc820..c338412b2 100644 --- a/include/freerdp/utils/print.h +++ b/include/freerdp/utils/print.h @@ -23,8 +23,8 @@ #include #ifdef _WIN32 -#define snprintf sprintf_s -#define strcasecmp _stricmp +#define snprintf sprintf_s +#define strcasecmp _stricmp #endif #endif /* FREERDP_PRINT_UTILS_H */ diff --git a/winpr/include/winpr/string.h b/winpr/include/winpr/string.h index eb311908e..99bef208b 100644 --- a/winpr/include/winpr/string.h +++ b/winpr/include/winpr/string.h @@ -147,6 +147,8 @@ WINPR_API int lstrcmpW(LPCWSTR lpString1, LPCWSTR lpString2); #define lstrcmp lstrcmpA #endif +#define sprintf_s snprintf + #endif #endif /* WINPR_CRT_STRING_H */