Fixes XL C++ 10.1 compiler errors (based on patch by Hady Zalek); cleans up formatting of GTEST_NO_INLINE_.

This commit is contained in:
zhanyong.wan
2011-04-15 19:50:39 +00:00
parent c006f8c12b
commit c91a353c47
2 changed files with 20 additions and 14 deletions

View File

@@ -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 {