From 7e69848d8415e3907eb98439b352522a407dc7f6 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Wed, 24 Jan 2024 19:08:14 -0500 Subject: [PATCH] hopefully this fixes gcc --- src/tiv.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/tiv.cpp b/src/tiv.cpp index 3a24205..e51cc1b 100644 --- a/src/tiv.cpp +++ b/src/tiv.cpp @@ -35,6 +35,25 @@ * limitations under the License. */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// This #define tells CImg that we use the library without any display options, +// just for loading images. +#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 + #ifdef _POSIX_VERSION // Console output size detection #include @@ -61,25 +80,6 @@ #define EX_CONFIG 78 /* configuration error */ #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// This #define tells CImg that we use the library without any display options, -// just for loading images. -#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 - // @TODO: Convert to bitset // Implementation of flag representation for flags in the main() method constexpr int FLAG_FG = 1; // emit fg color