From fe1285bb8fe2d92f68a94b5c914fe764e6929010 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Sat, 4 Sep 2004 11:21:16 +0000 Subject: [PATCH] guard long long usage with BOOST_HAS_LONG_LONG [SVN r24900] --- include/boost/config/suffix.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 563d1a99..77d9deca 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -404,15 +404,17 @@ namespace std { // but it's use may generate either warnings (with -ansi), or errors // (with -pedantic -ansi) unless it's use is prefixed by __extension__ // +#if defined(BOOST_HAS_LONG_LONG) namespace boost{ -#ifdef __GNUC__ +# ifdef __GNUC__ __extension__ typedef long long long_long_type; __extension__ typedef unsigned long long ulong_long_type; -#else +# else typedef long long long_long_type; typedef unsigned long long ulong_long_type; -#endif +# endif } +#endif // BOOST_[APPEND_]EXPLICIT_TEMPLATE_[NON_]TYPE macros --------------------------// //