summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openglgraphics.cpp2
-rw-r--r--src/sdlgraphics.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index cb242ff7..253cc1d2 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -34,6 +34,8 @@
#include <SDL.h>
+#include <cmath>
+
#ifndef GL_TEXTURE_RECTANGLE_ARB
#define GL_TEXTURE_RECTANGLE_ARB 0x84F5
#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
diff --git a/src/sdlgraphics.cpp b/src/sdlgraphics.cpp
index 37643190..44e89222 100644
--- a/src/sdlgraphics.cpp
+++ b/src/sdlgraphics.cpp
@@ -28,6 +28,8 @@
#include <guichan/exception.hpp>
+#include <cmath>
+
std::unique_ptr<Graphics> SDLGraphics::create(SDL_Window *window, const VideoSettings &settings)
{
int rendererFlags = 0;