$NetBSD: patch-ah,v 1.1 2005/03/16 15:32:12 rillig Exp $ g++-2.95.3 does not know the min() and max() macros/functions. --- src/rtty2demodulator.cpp.orig Sun Jul 4 17:50:45 2004 +++ src/rtty2demodulator.cpp Wed Mar 16 03:34:16 2005 @@ -149,8 +149,8 @@ while ( actSample < NxSamples ) { j=(ThresholdPointer+i)%SampleBufferLength; float x=ThresholdBuffer[j]; - xmax=max(xmax,x); - xmin=min(xmin,x); + xmax= xmax > x ? xmax : x; + xmin= xmin < x ? xmin : x; } DiscriminatorThreshold=(xmax+xmin)/2.;