Changed code to support Windows libraries and functions as well

This commit is contained in:
2024-02-29 16:38:36 -05:00
parent ddbbc322a6
commit 4b3d5387a1
6 changed files with 55 additions and 30 deletions

View File

@@ -1,3 +1,18 @@
#if defined(_WIN32)
#define NOGDI // All GDI defines and routines
#define NOUSER // All USER defines and routines
#define WIN32_LEAN_AND_MEAN
#include <windows.h> // or any library that uses Windows.h
#endif
#if defined(_WIN32) // raylib uses these names as function parameters
#undef near
#undef far
#endif
#include <iostream>
#include <cmath>
#include <cstring>