summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/statereader.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-04-08 03:27:34 +0200
committer couriersud <couriersud@arcor.de>2016-04-08 03:30:12 +0200
commit632b10cd0ec304c0367321a5be62164d00b18ff1 (patch)
tree3eedc6c641eab298cd7be64e8952725213132175 /src/osd/modules/render/bgfx/statereader.cpp
parentbc936dbc261a5eeb1400bdf0d0bc945577470905 (diff)
Fix SDL compile on linux. Took the opportunity to remove a number of
"emu.h" includes from src/osd/modules/render/bgfx code. There is still a conflict between mame memory.h and bgfx memory.h to be resolved.
Diffstat (limited to 'src/osd/modules/render/bgfx/statereader.cpp')
-rw-r--r--src/osd/modules/render/bgfx/statereader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/statereader.cpp b/src/osd/modules/render/bgfx/statereader.cpp
index defb4c65296..91f3bd539bd 100644
--- a/src/osd/modules/render/bgfx/statereader.cpp
+++ b/src/osd/modules/render/bgfx/statereader.cpp
@@ -9,6 +9,8 @@
#include "statereader.h"
+#include <math.h>
+
uint64_t state_reader::get_enum_from_value(const Value& value, std::string name, const uint64_t default_value, const string_to_enum* enums, const int count)
{
if (value.HasMember(name.c_str()))