aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/draci.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci/draci.h')
-rw-r--r--engines/draci/draci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/draci/draci.h b/engines/draci/draci.h
index 1707fc29ad..68e56bb2d7 100644
--- a/engines/draci/draci.h
+++ b/engines/draci/draci.h
@@ -26,6 +26,8 @@
#ifndef DRACI_H
#define DRACI_H
+#include <math.h>
+
#include "common/system.h"
#include "engines/engine.h"
#include "engines/advancedDetector.h"
@@ -109,6 +111,9 @@ enum {
kDraciWalkingDebugLevel = 1 << 6
};
+// Macro to simulate lround() for non-C99 compilers
+static inline long scummvm_lround(double val) { return (long)floor(val + 0.5); }
+
} // End of namespace Draci
#endif // DRACI_H