summaryrefslogtreecommitdiff
path: root/games/lincity-ng/files/extra-src-gui-PainterSDL-PainterSDL.cpp
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2005-07-23 10:41:11 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2005-07-23 10:41:11 +0000
commit6f823f416633e55f8b60682e4496dec69eee1e03 (patch)
treea358535fdab33caabb490190b2b1e8ec47ac80e6 /games/lincity-ng/files/extra-src-gui-PainterSDL-PainterSDL.cpp
parentAdd a generic message regarding the problems with some soundcards. (diff)
- Add missing depend on libxml [1]
- Fix build on < 5.4 (5.3, 4.x). Unbreak on 4.x Submitted by: maintainer Reported by: kris via pointyhat [1]
Diffstat (limited to 'games/lincity-ng/files/extra-src-gui-PainterSDL-PainterSDL.cpp')
-rw-r--r--games/lincity-ng/files/extra-src-gui-PainterSDL-PainterSDL.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/lincity-ng/files/extra-src-gui-PainterSDL-PainterSDL.cpp b/games/lincity-ng/files/extra-src-gui-PainterSDL-PainterSDL.cpp
new file mode 100644
index 000000000000..476925c8c3ac
--- /dev/null
+++ b/games/lincity-ng/files/extra-src-gui-PainterSDL-PainterSDL.cpp
@@ -0,0 +1,13 @@
+--- src/gui/PainterSDL/PainterSDL.cpp.orig Fri Jul 15 19:47:12 2005
++++ src/gui/PainterSDL/PainterSDL.cpp Sat Jul 23 12:41:09 2005
+@@ -30,10 +30,8 @@
+
+ #include "TextureSDL.hpp"
+
+-#ifdef _MSC_VER
+ #define lrint(x) (long int)x
+ #define lroundf(x) (long int)(x + .5)
+-#endif
+
+ PainterSDL::PainterSDL(SDL_Surface* _target)
+ : target(_target)