| Index: mojo/public/c/system/macros.h
|
| diff --git a/mojo/public/c/system/macros.h b/mojo/public/c/system/macros.h
|
| index ae88249ec6411d6b0ccf0f3d828d184fccff2de0..564ee60ff8917a8a8007f8688b6f049955010d18 100644
|
| --- a/mojo/public/c/system/macros.h
|
| +++ b/mojo/public/c/system/macros.h
|
| @@ -35,7 +35,7 @@
|
| // if (TakeOwnership(my_var.get()) == SUCCESS)
|
| // mojo_ignore_result(my_var.release());
|
| //
|
| -template<typename T>
|
| +template <typename T>
|
| inline void mojo_ignore_result(const T&) {
|
| }
|
| #endif
|
| @@ -47,9 +47,12 @@ inline void mojo_ignore_result(const T&) {
|
| #if __cplusplus >= 201103L
|
| #define MOJO_COMPILE_ASSERT(expr, msg) static_assert(expr, #msg)
|
| #elif defined(__cplusplus)
|
| -namespace mojo { template <bool> struct CompileAssert {}; }
|
| +namespace mojo {
|
| +template <bool>
|
| +struct CompileAssert {};
|
| +}
|
| #define MOJO_COMPILE_ASSERT(expr, msg) \
|
| - typedef ::mojo::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
|
| + typedef ::mojo::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
|
| #else
|
| #define MOJO_COMPILE_ASSERT(expr, msg)
|
| #endif
|
|
|