summaryrefslogtreecommitdiff
path: root/sysutils/xosview/patches/patch-bg
blob: 568061295b2c04008652bded4662d6d920d8bef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-bg,v 1.2 2006/02/18 10:12:24 rillig Exp $

Status: applied upstream.

This patch fixes the MIN and MAX macros. To my knowledge, only gcc can
handle ({...}) expressions, so let's express that.

--- xosview.cc.orig	2003-10-09 05:40:54.000000000 +0200
+++ xosview.cc	2005-02-22 14:16:47.380960800 +0100
@@ -22,7 +22,7 @@ static const char * const versionString 
 
 static const char NAME[] = "xosview@";
 
-#ifdef sgi
+#if !defined(__GNUC__)
 
 #define MIN(x,y)		\
 (				\