diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-28 03:09:22 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-28 03:09:22 +0000 |
| commit | d770d1c40af48bb8f288b3ee4c9670289d9c2e45 (patch) | |
| tree | a698e9e5af07885272317ff0e0f2f77543ba731e /src/common.h | |
| parent | 20ba8c707adc2cafd76b2b29c59531d3ec0a7d94 (diff) | |
* common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a
compiler
does not define these macros.
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index aa046c6d..4e965073 100644 --- a/src/common.h +++ b/src/common.h @@ -26,4 +26,9 @@ # include <config.h> #endif +#ifndef LONG_LONG_MAX +# define LONG_LONG_MAX 9223372036854775807LL +# define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL) +#endif // LONG_LONG_MAX + using namespace std; |
