diff options
author | D G Turner | 2013-07-31 06:18:58 +0100 |
---|---|---|
committer | D G Turner | 2013-07-31 06:18:58 +0100 |
commit | 26a9b528dadde6521f80a7121af69f6af6f53b9a (patch) | |
tree | 66f97d412724e5b7b069e71fe021afd88eda6ef8 /backends/graphics/opengl/gltexture.cpp | |
parent | 1809cc567303651dd3acd54d64f0e7c33a2651df (diff) | |
download | scummvm-rg350-26a9b528dadde6521f80a7121af69f6af6f53b9a.tar.gz scummvm-rg350-26a9b528dadde6521f80a7121af69f6af6f53b9a.tar.bz2 scummvm-rg350-26a9b528dadde6521f80a7121af69f6af6f53b9a.zip |
COMMON: Move definition of math constants to scummsys header.
This should have no effect on common/math.h as scummsys is included at
the top anyway, but this will fix compilation on some toolchains when
strict ANSI language compliance is enabled i.e. -std=c++11, rather than
-std=gnu11.
This causes an issue as a side effect is to set a guard which disables
various non-standard defines in the system headers i.e. the M_PI and
M_SQRT1_2 constant definitions in the MinGW x86_64 toolchain on
buildbot.
By moving this into scummsys.h after the point of system math.h
inclusion, we can ensure that M_PI etc. are always present.
Diffstat (limited to 'backends/graphics/opengl/gltexture.cpp')
0 files changed, 0 insertions, 0 deletions