From 9bd03e9c7912787b12087fa0f18cf88f3f923b91 Mon Sep 17 00:00:00 2001 From: MilanDierick Date: Wed, 21 Jun 2023 04:30:25 +0200 Subject: [PATCH] checking against windows instead of specifically msvc --- include/flecs/os_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/flecs/os_api.h b/include/flecs/os_api.h index 17aee0d18..ca6ae411a 100644 --- a/include/flecs/os_api.h +++ b/include/flecs/os_api.h @@ -386,7 +386,7 @@ void ecs_os_set_api_defaults(void); #define ecs_offset(ptr, T, index)\ ECS_CAST(T*, ECS_OFFSET(ptr, ECS_SIZEOF(T) * index)) -#if defined(ECS_TARGET_MSVC) +#if defined(ECS_TARGET_WINDOWS) #define ecs_os_strcat(str1, str2) strcat_s(str1, INT_MAX, str2) #define ecs_os_sprintf(ptr, ...) sprintf_s(ptr, INT_MAX, __VA_ARGS__) #define ecs_os_vsprintf(ptr, fmt, args) vsprintf_s(ptr, INT_MAX, fmt, args) @@ -409,7 +409,7 @@ void ecs_os_set_api_defaults(void); #endif /* Files */ -#if defined(ECS_TARGET_MSVC) +#if defined(ECS_TARGET_WINDOWS) #define ecs_os_fopen(result, file, mode) fopen_s(result, file, mode) #else #define ecs_os_fopen(result, file, mode) (*(result)) = fopen(file, mode)