1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/graphics/gliv/files/patch-src__matrix.c
Dmitry Marakasov 163ba28b4a - Clarify LICENSE
- Add LICENSE_FILE
- Pet portlint
- Add USES=desktop-file-utils as suggested by stage-qa
- Regenerate patches with `make makepatch`
2015-06-23 14:13:05 +00:00

14 lines
382 B
C

--- src/matrix.c.orig 2010-11-07 19:22:01 UTC
+++ src/matrix.c
@@ -35,6 +35,11 @@ extern rt_struct *rt;
extern options_struct *options;
extern GlivImage *current_image;
+#if !defined(INFINITY)
+#define HUGE_VALF (float)HUGE_VAL
+#define INFINITY HUGE_VALF
+#endif
+
/*
* OpenGL uses a transposed matrix, we use a 'normal' one,
* we transpose it just before glLoadMatrix().