From d770d1c40af48bb8f288b3ee4c9670289d9c2e45 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 28 Feb 2006 03:09:22 +0000 Subject: [PATCH] * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler does not define these macros. --- ChangeLog | 2 ++ src/common.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 77bc1f9d..2d812293 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ * DownloadCommand.h: added #include directive of sys/time.h. * *.h: added #include directive of common.h to all base classes. subclasses' one was removed. + * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler + does not define these macros. 2006-02-23 Tatsuhiro Tsujikawa 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 #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;