aboutsummaryrefslogtreecommitdiff
path: root/devel/py-game
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-07-14 12:52:56 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-07-14 12:52:56 +0000
commitb8c0db0a0d16416d5e86e646ff5ac233ae141da1 (patch)
tree68daae4dab40fbcda208153aedcecdd773ff7fc8 /devel/py-game
parent2b881cbb3008308f21ff0c664d3dd48dcf9028c6 (diff)
downloadports-b8c0db0a0d16416d5e86e646ff5ac233ae141da1.tar.gz
ports-b8c0db0a0d16416d5e86e646ff5ac233ae141da1.zip
Notes
Diffstat (limited to 'devel/py-game')
-rw-r--r--devel/py-game/files/patch-src-draw.c18
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)))