chore: don't redefine fopen_s on windows
All checks were successful
CI / build-and-test (push) Successful in 2m9s

This commit is contained in:
2025-11-14 09:19:26 +13:00
parent 4380b92516
commit 2088773974

View File

@@ -12,7 +12,12 @@
#include "GuiManager.h"
#endif
#define fopen_s(pFile, filename, mode) ((*(pFile) = fopen((filename), (mode))) == NULL)
#ifdef _WIN32
// On Windows, fopen_s is already available, so no need to define it.
#else
// On non-Windows platforms, define fopen_s as a macro for fopen.
#define fopen_s(pFile, filename, mode) ((*(pFile) = fopen((filename), (mode))) == NULL)
#endif
const char *Application::WINDOW_TITLE = "Raylib + AngelScript";
const char *Application::SCRIPT_FILE = "scripts/test.as";