summaryrefslogtreecommitdiff
path: root/src/resources/dye
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/dye')
-rw-r--r--src/resources/dye/dyepalette.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp
index 930f23723..9b2a2a8a8 100644
--- a/src/resources/dye/dyepalette.cpp
+++ b/src/resources/dye/dyepalette.cpp
@@ -30,7 +30,9 @@
#include "utils/stringutils.h"
+#ifndef USE_SDL2
#include <cmath>
+#endif // USE_SDL2
#include <SDL_endian.h>