Browse Source

CPP: Fix build issue

pull/567/head
Cecilia Roes 11 years ago
committed by Mihaela Rosca
parent
commit
dc9d9062a2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      cpp/src/phonenumbers/base/basictypes.h

+ 4
- 0
cpp/src/phonenumbers/base/basictypes.h View File

@ -194,9 +194,13 @@ struct CompileAssert {
}; };
#if !defined(COMPILE_ASSERT) #if !defined(COMPILE_ASSERT)
#if __cplusplus >= 201103L
#define COMPILE_ASSERT(expr, msg) static_assert(expr, #msg)
#else
#define COMPILE_ASSERT(expr, msg) \ #define COMPILE_ASSERT(expr, msg) \
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
#endif #endif
#endif
} // namespace phonenumbers } // namespace phonenumbers
} // namespace i18n } // namespace i18n


Loading…
Cancel
Save