diff --git a/doc/example/reference.cpp b/doc/example/reference.cpp index 9dbad31..bb2c4d6 100644 --- a/doc/example/reference.cpp +++ b/doc/example/reference.cpp @@ -249,16 +249,6 @@ MOCK_CLASS( mock_class ) }; //] } -#elif defined( BOOST_GCC ) -namespace member_function_example_10 -{ -//[ member_function_example_10 -MOCK_CLASS( mock_class ) -{ - MOCK_METHOD( __attribute((stdcall)) method, 0, void(), method ) // all parameters must be provided when specifying a different calling convention -}; -//] -} #endif namespace static_member_function_example_1 @@ -292,16 +282,6 @@ MOCK_CLASS( mock_class ) }; //] } -#elif defined( BOOST_GCC ) -namespace static_member_function_example_4 -{ -//[ static_member_function_example_4 -MOCK_CLASS( mock_class ) -{ - MOCK_STATIC_METHOD( __attribute((stdcall)) method, 0, void(), method ) // all parameters must be provided when specifying a different calling convention -}; -//] -} #endif namespace constructor_example_1 @@ -336,16 +316,6 @@ MOCK_CLASS( mock_class ) }; //] } -#elif defined( BOOST_GCC ) -namespace constructor_example_4 -{ -//[ constructor_example_4 -MOCK_CLASS( mock_class ) -{ - MOCK_CONSTRUCTOR( __attribute((stdcall)) mock_class, 0, (), constructor ) -}; -//] -} #endif namespace destructor_example_1 @@ -368,16 +338,6 @@ MOCK_CLASS( mock_class ) }; //] } -#elif defined( BOOST_GCC ) -namespace destructor_example_3 -{ -//[ destructor_example_3 -MOCK_CLASS( mock_class ) -{ - MOCK_DESTRUCTOR( __attribute((stdcall)) ~mock_class, destructor ) -}; -//] -} #endif namespace conversion_operator_example_1 @@ -414,16 +374,6 @@ MOCK_CLASS( mock_class ) }; //] } -#elif defined( BOOST_GCC ) -namespace conversion_operator_example_4 -{ -//[ conversion_operator_example_4 -MOCK_CLASS( mock_class ) -{ - MOCK_CONVERSION_OPERATOR( __attribute((stdcall)) operator, int, conversion_to_int ) -}; -//] -} #endif namespace function_example_1 @@ -445,13 +395,6 @@ namespace function_example_2 MOCK_FUNCTION( __stdcall f, 0, void(), f ) // all parameters must be provided when specifying a different calling convention //] } -#elif defined( BOOST_GCC ) -namespace function_example_3 -{ -//[ function_example_3 -MOCK_FUNCTION( __attribute((stdcall)) f, 0, void(), f ) // all parameters must be provided when specifying a different calling convention -//] -} #endif namespace functor_example_1 diff --git a/test/test_mock.cpp b/test/test_mock.cpp index 98b148b..9eff85b 100644 --- a/test/test_mock.cpp +++ b/test/test_mock.cpp @@ -433,11 +433,9 @@ namespace #ifdef BOOST_MSVC # define MOCK_STDCALL __stdcall -#elif defined( BOOST_GCC ) -# define MOCK_STDCALL __attribute((stdcall)) #else # define MOCK_STDCALL -#endif // BOOST_GCC +#endif namespace stdcall {