From b245b1a838ee1b771a13a89e930495039bf14083 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 30 Apr 2007 17:04:26 +0000 Subject: [PATCH] Missing POSIX macro under BeOS. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20931 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/posix_compatibility.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/tools/fs_shell/posix_compatibility.h diff --git a/src/tools/fs_shell/posix_compatibility.h b/src/tools/fs_shell/posix_compatibility.h new file mode 100644 index 0000000000..d5693f0b60 --- /dev/null +++ b/src/tools/fs_shell/posix_compatibility.h @@ -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 +#ifndef LLONG_MIN +# define LLONG_MIN LONGLONG_MIN +# define LLONG_MAX LONGLONG_MAX +# define ULLONG_MAX ULONGLONG_MAX +#endif + +#endif // _FSSH_POSIX_COMPATIBILITY_H +