diff --git a/include/boost/math/common_factor_rt.hpp b/include/boost/math/common_factor_rt.hpp index 97006c5..c02d12a 100644 --- a/include/boost/math/common_factor_rt.hpp +++ b/include/boost/math/common_factor_rt.hpp @@ -296,9 +296,7 @@ namespace detail #ifdef BOOST_HAS_LONG_LONG BOOST_PRIVATE_GCD_UF( unsigned long long ); -#endif - -#ifdef BOOST_HAS_MS_INT64 +#elif defined(BOOST_HAS_MS_INT64) BOOST_PRIVATE_GCD_UF( unsigned __int64 ); #endif @@ -320,9 +318,7 @@ namespace detail #ifdef BOOST_HAS_LONG_LONG BOOST_PRIVATE_GCD_SF( long long, unsigned long long ); -#endif - -#ifdef BOOST_HAS_MS_INT64 +#elif defined(BOOST_HAS_MS_INT64) BOOST_PRIVATE_GCD_SF( __int64, unsigned __int64 ); #endif diff --git a/test/common_factor_test.cpp b/test/common_factor_test.cpp index 80bc11c..8c7c7ef 100644 --- a/test/common_factor_test.cpp +++ b/test/common_factor_test.cpp @@ -8,6 +8,7 @@ // See http://www.boost.org for most recent version including documentation. // Revision History +// 10 Nov 2006 Make long long and __int64 mutually exclusive (Daryle Walker) // 04 Nov 2006 Use more built-in numeric types, binary-GCD (Daryle Walker) // 03 Nov 2006 Use custom numeric types (Daryle Walker) // 02 Nov 2006 Change to Boost.Test's unit test system (Daryle Walker) @@ -15,7 +16,7 @@ #define BOOST_TEST_MAIN "Boost.Math GCD & LCM unit tests" -#include // for BOOST_MSVC +#include // for BOOST_MSVC, etc. #include // for boost::math::gcd, etc. #include // for boost::mpl::list #include @@ -108,8 +109,7 @@ typedef my_wrapped_integer MyUnsigned2; typedef ::boost::mpl::list signed_test_types; @@ -117,8 +117,7 @@ typedef ::boost::mpl::list unsigned_test_types;