From f6d2534a67ce079950c0a4eccf61b5576f5ab4ec Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Wed, 4 Mar 2026 11:23:28 -0800 Subject: [PATCH] Don't double define _CRT_SECURE_NO_WARNINGS (#529) --- src/raygui.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index 03e4879..9c36c98 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -357,7 +357,9 @@ #elif defined(USE_LIBTYPE_SHARED) #define RAYGUIAPI __declspec(dllimport) // Using the library as a Win32 shared library (.dll) #endif - #define _CRT_SECURE_NO_WARNINGS // Disable unsafe warnings on scanf() functions in MSVC + #if !defined(_CRT_SECURE_NO_WARNINGS) + #define _CRT_SECURE_NO_WARNINGS // Disable unsafe warnings on scanf() functions in MSVC + #endif #endif // Function specifiers definition