Since I haven't got enough information to solve the missing LLONG_MAX
issue on some Linux distros by now, here's a work-around. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21056 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e23824d781
commit
633a699447
@ -5,13 +5,19 @@
|
||||
#ifndef _FSSH_POSIX_COMPATIBILITY_H
|
||||
#define _FSSH_POSIX_COMPATIBILITY_H
|
||||
|
||||
// BeOS doesn't define [U]LLONG_{MIN,MAX}, but [U]LONGLONG_{MIN,MAX}
|
||||
#include <limits.h>
|
||||
#ifndef LLONG_MIN
|
||||
# define LLONG_MIN LONGLONG_MIN
|
||||
|
||||
// BeOS doesn't define [U]LLONG_{MIN,MAX}, but [U]LONGLONG_{MIN,MAX}.
|
||||
// And under some stupid Linux platforms we don't get the macros when
|
||||
// compiling in C++ mode.
|
||||
#ifndef LLONG_MAX
|
||||
# ifdef LONGLONG_MAX
|
||||
// define to the BeOS macro
|
||||
# define LLONG_MAX LONGLONG_MAX
|
||||
# define ULLONG_MAX ULONGLONG_MAX
|
||||
# else
|
||||
// minimum acceptable value as per standard
|
||||
# define LLONG_MAX (9223372036854775807LL)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // _FSSH_POSIX_COMPATIBILITY_H
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user