Missing POSIX macro under BeOS.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20931 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-04-30 17:04:26 +00:00
parent f067335f51
commit b245b1a838
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
/*
* Copyright 2007, Ingo Weinhold, bonefish@cs.tu-berlin.de.
* Distributed under the terms of the MIT License.
*/
#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
# define LLONG_MAX LONGLONG_MAX
# define ULLONG_MAX ULONGLONG_MAX
#endif
#endif // _FSSH_POSIX_COMPATIBILITY_H