summaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-ay
blob: 348cefca96ca683c687fec972283a3ab8d54b217 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- 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 */