From 672055e06344319039a2708a9758eb1d83d59f4f Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 25 Jun 2024 14:49:43 +0200 Subject: [PATCH] crnlib: collapse ifdef --- crnlib/crn_platform.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/crnlib/crn_platform.h b/crnlib/crn_platform.h index b798efc3..07124214 100644 --- a/crnlib/crn_platform.h +++ b/crnlib/crn_platform.h @@ -69,23 +69,15 @@ const bool c_crnlib_big_endian_platform = !c_crnlib_little_endian_platform; #if defined(_WIN32) #define crnlib_snprintf sprintf_s #define crnlib_vsnprintf vsprintf_s -#else -#define crnlib_snprintf snprintf -#define crnlib_vsnprintf vsnprintf -#endif - -#if defined(_WIN32) #define crnlib_strnlwr _strlwr_s #define crnlib_strnupr _strupr_s -#else -char* crnlib_strnlwr(char* p, size_t n); -char* crnlib_strnupr(char* p, size_t n); -#endif - -#if defined(_WIN32) #define crnlib_stricmp _stricmp #define crnlib_strnicmp _strnicmp #else +#define crnlib_snprintf snprintf +#define crnlib_vsnprintf vsnprintf +char* crnlib_strnlwr(char* p, size_t n); +char* crnlib_strnupr(char* p, size_t n); #define crnlib_stricmp strcasecmp #define crnlib_strnicmp strncasecmp #endif