diff options
Diffstat (limited to 'ham/linpsk/patches/patch-ah')
-rw-r--r-- | ham/linpsk/patches/patch-ah | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ham/linpsk/patches/patch-ah b/ham/linpsk/patches/patch-ah new file mode 100644 index 00000000000..5a23b4cbe01 --- /dev/null +++ b/ham/linpsk/patches/patch-ah @@ -0,0 +1,17 @@ +$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.; + |