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
24 lines
631 B
C
24 lines
631 B
C
/*
|
|
* Copyright 2007, Ingo Weinhold, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _FSSH_POSIX_COMPATIBILITY_H
|
|
#define _FSSH_POSIX_COMPATIBILITY_H
|
|
|
|
#include <limits.h>
|
|
|
|
// 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
|
|
# else
|
|
// minimum acceptable value as per standard
|
|
# define LLONG_MAX (9223372036854775807LL)
|
|
# endif
|
|
#endif
|
|
|
|
#endif // _FSSH_POSIX_COMPATIBILITY_H
|