openbsd-ports/games/scummvm/patches/patch-engines_draci_draci_h
jsg 6b7e839f39 Remove a workaround for msvc lacking lround and always call lround.
Works around the assembler complaining about "Illegal operands" on sparc64
when calling the previous inline version, and makes sparc64 build again
without custom cxxflags.
2012-10-06 19:24:32 +00:00

14 lines
450 B
Plaintext

$OpenBSD: patch-engines_draci_draci_h,v 1.1 2012/10/06 19:24:32 jsg Exp $
--- engines/draci/draci.h.orig Sun Oct 7 00:35:56 2012
+++ engines/draci/draci.h Sun Oct 7 00:42:40 2012
@@ -121,8 +121,7 @@ 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); }
+#define scummvm_lround lround
} // End of namespace Draci