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

@ -10,7 +10,6 @@
/* min() and max() variable comparisons: */
#ifndef __HAIKU__
#ifdef __GNUC__
// This version has strict type checking for safety.
// See the "unnecessary" pointer comparison. (from Linux)
@ -28,7 +27,6 @@
#define min(a,b) (((a) < (b)) ? (a) : (b))
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#endif /* Not Haiku */
/* clamp() returns 'value', unless it's less than 'lo' or greater than 'hi',
in which cases it returns 'lo' or 'hi', respectively: */