From e358e372ec79a145ee4ea89193282e6556b63926 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 1 Feb 2024 17:49:14 -0500 Subject: [PATCH] fix weird CImg bug --- src/tiv.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tiv.cpp b/src/tiv.cpp index cef3516..7c5b322 100644 --- a/src/tiv.cpp +++ b/src/tiv.cpp @@ -45,6 +45,9 @@ // CImg, the superior grafiks library #define cimg_display 0 #include "CImg.h" +// CImg defines its own min and max macros to compile, so we need to undef them +#undef min +#undef max // First include for detecting console output size, // everything else for exit codes