1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/graphics/netpbm/files/patch-ay
Michael Haro 5c16c7e505 update to 8.3
Due to the change of default prefix from X11BASE to LOCALBASE, some
other ports Makefile having dependancy to grapchics/netpbm may have to
modify *_DEPENDS line.  I'll update those ports in a minute.

PR:		17742
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-04-01 23:57:38 +00:00

22 lines
524 B
Plaintext

--- pnm/pnmtotiffcmyk.c.orig Fri Mar 24 09:17:16 2000
+++ pnm/pnmtotiffcmyk.c Sat Apr 1 12:00:00 2000
@@ -57,7 +57,7 @@
#include "pnm.h"
#include <math.h>
-#ifdef __osf__
+#if defined(__osf__) || defined(__FreeBSD__)
#include <float.h>
#endif
#include <limits.h>
@@ -69,7 +69,9 @@
#define VERSION 1.01
/* beware - these evaluate more than once */
+#undef MAX
#define MAX(x, y) ( ( x ) > ( y ) ? ( x ) : ( y ) )
+#undef MIN
#define MIN(x, y) ( ( x ) < ( y ) ? ( x ) : ( y ) )
/* only support 8 bit values */