diff options
| author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-04-15 19:50:39 +0000 |
|---|---|---|
| committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-04-15 19:50:39 +0000 |
| commit | c91a353c47ea13244550037918ff8dc423063012 (patch) | |
| tree | 4bafa72b6022ac8aa3ba7bb3e53d9262ee3d9404 /include/gtest/internal/gtest-port.h | |
| parent | c006f8c12bc74131692a2df8fd64dcedeafe6c77 (diff) | |
| download | googletest-c91a353c47ea13244550037918ff8dc423063012.tar.gz googletest-c91a353c47ea13244550037918ff8dc423063012.tar.bz2 googletest-c91a353c47ea13244550037918ff8dc423063012.zip | |
Fixes XL C++ 10.1 compiler errors (based on patch by Hady Zalek); cleans up formatting of GTEST_NO_INLINE_.
Diffstat (limited to 'include/gtest/internal/gtest-port.h')
| -rw-r--r-- | include/gtest/internal/gtest-port.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index c6d102af..157b47f8 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -662,12 +662,12 @@ # define GTEST_API_ #endif -#if defined(__GNUC__) +#ifdef __GNUC__ // Ask the compiler to never inline a given function. -#define GTEST_NO_INLINE_ __attribute__((noinline)) +# define GTEST_NO_INLINE_ __attribute__((noinline)) #else -#define GTEST_NO_INLINE_ -#endif // __GNUC__ +# define GTEST_NO_INLINE_ +#endif namespace testing { |
