From 95633ab6e04b58cae548cea94ae61e65aa25a488 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Mon, 25 Aug 2025 00:05:30 -0400 Subject: [PATCH] Removed some unused macro definitions for snprintf --- RecastDemo/Source/Sample.cpp | 4 ---- RecastDemo/Source/Tool_ConvexVolume.cpp | 6 ------ RecastDemo/Source/Tool_Crowd.cpp | 4 ---- 3 files changed, 14 deletions(-) diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index 9f5b08fd..594d7ad2 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -31,10 +31,6 @@ #include -#ifdef WIN32 -# define snprintf _snprintf -#endif - const char* toolNames[] = { "None", "Create Tiles", diff --git a/RecastDemo/Source/Tool_ConvexVolume.cpp b/RecastDemo/Source/Tool_ConvexVolume.cpp index 569c166b..120ea084 100644 --- a/RecastDemo/Source/Tool_ConvexVolume.cpp +++ b/RecastDemo/Source/Tool_ConvexVolume.cpp @@ -27,12 +27,6 @@ #include -#ifdef WIN32 -# define snprintf _snprintf -#endif - -// Quick and dirty convex hull. - namespace { /// Returns true if 'c' is left of line 'a'-'b'. inline bool left(const float* a, const float* b, const float* c) diff --git a/RecastDemo/Source/Tool_Crowd.cpp b/RecastDemo/Source/Tool_Crowd.cpp index a15b32a9..765228ef 100644 --- a/RecastDemo/Source/Tool_Crowd.cpp +++ b/RecastDemo/Source/Tool_Crowd.cpp @@ -18,9 +18,6 @@ #include "Tool_Crowd.h" -#include "SDL.h" -#include "SDL_opengl.h" - #include #include #include @@ -32,7 +29,6 @@ #include "DetourObstacleAvoidance.h" #include "InputGeom.h" #include "Sample.h" -#include "SampleInterfaces.h" #include "imguiHelpers.h" #ifdef WIN32