From 1b21302df9989ffcbf81a042d879e831295bf26d Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Mon, 7 Oct 2002 12:27:09 +0000 Subject: fix build ; values.h problem PR: 43761 Submitted by: Maxim Maximov --- emulators/adamem/files/patch-DSP.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 emulators/adamem/files/patch-DSP.c (limited to 'emulators/adamem/files/patch-DSP.c') diff --git a/emulators/adamem/files/patch-DSP.c b/emulators/adamem/files/patch-DSP.c new file mode 100644 index 000000000000..850bb8c86219 --- /dev/null +++ b/emulators/adamem/files/patch-DSP.c @@ -0,0 +1,20 @@ +--- DSP.c.orig Mon Oct 7 20:23:32 2002 ++++ DSP.c Mon Oct 7 20:24:02 2002 +@@ -15,7 +15,7 @@ + + #include + #include +-#include ++#include + + static int initialised=0; + static int stereo=0; +@@ -103,7 +103,7 @@ + if (freq>MAXFREQ) + freq=MAXFREQ; + +- if (freq>(MAXINT/441)) freq=MAXINT/441; /* avoid overflows */ ++ if (freq>(INT_MAX/441)) freq=INT_MAX/441; /* avoid overflows */ + if (channel==3) + { + for (i=0;i<5;++i) -- cgit v1.2.3