diff options
author | pav <pav@FreeBSD.org> | 2004-07-14 20:52:56 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-07-14 20:52:56 +0800 |
commit | 4b1df695ff9e519fd56457f6765504cf9884586b (patch) | |
tree | e2000b92de2d25ed34fd3c57f59ca432517c2972 /devel/py-game | |
parent | 0e87bc06db6e91da4c611fdc7b71bcf65f7e7101 (diff) | |
download | freebsd-ports-gnome-4b1df695ff9e519fd56457f6765504cf9884586b.tar.gz freebsd-ports-gnome-4b1df695ff9e519fd56457f6765504cf9884586b.tar.zst freebsd-ports-gnome-4b1df695ff9e519fd56457f6765504cf9884586b.zip |
- Fix build on recent -CURRENT which got trunc()
Diffstat (limited to 'devel/py-game')
-rw-r--r-- | devel/py-game/files/patch-src-draw.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/devel/py-game/files/patch-src-draw.c b/devel/py-game/files/patch-src-draw.c index cb17854ae6d7..d3299295981b 100644 --- a/devel/py-game/files/patch-src-draw.c +++ b/devel/py-game/files/patch-src-draw.c @@ -1,20 +1,14 @@ --- src/draw.c.orig Thu Oct 16 08:13:22 2003 -+++ src/draw.c Mon Nov 17 03:47:49 2003 -@@ -26,17 +26,12 @@ ++++ src/draw.c Wed Jul 14 14:20:17 2004 +@@ -25,9 +25,9 @@ + */ #include "pygame.h" #include <math.h> ++#include <sys/param.h> -#ifdef _MSC_VER -#pragma warning (disable:4244) -- ++#if __FreeBSD_version < 502119 + float trunc(float d) { - if (d >= 0) - return floor(d); - return ceil(d); - } -- --#endif - - #define FRAC(z) (z-trunc(z)) - #define INVFRAC(z) (1-(z-trunc(z))) |