Fix Haiku "unable to open saved files" bug

Appling patch from a92961004d
that fixes https://github.com/haikuports/haikuports/issues/3045
This commit is contained in:
Bill Kendrick 2020-06-22 23:04:13 -07:00
parent b65d7f9da4
commit e87f36d9a7
5 changed files with 8 additions and 7 deletions

View file

@ -28,7 +28,6 @@
$Id$
*/
#ifndef __HAIKU__
#ifdef __GNUC__
// This version has strict type checking for safety.
// See the "unnecessary" pointer comparison. (from Linux)
@ -46,7 +45,6 @@
#define min(a,b) (((a) < (b)) ? (a) : (b))
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#endif /* Not Haiku */
#define clamp(lo,value,hi) (min(max(value,lo),hi))