Fix warnings when compiling with -Wundef

This commit is contained in:
Ingo van Lil
2015-11-02 13:55:31 +01:00
parent 96d518f2f8
commit b4b13ee2b8
3 changed files with 20 additions and 4 deletions
+4
View File
@@ -69,6 +69,10 @@
# define FMT_UNUSED
#endif
#ifndef FMT_USE_STATIC_ASSERT
# define FMT_USE_STATIC_ASSERT 0
#endif
#if FMT_USE_STATIC_ASSERT || FMT_HAS_CPP_ATTRIBUTE(cxx_static_assert) || \
(FMT_GCC_VERSION >= 403 && FMT_HAS_GXX_CXX11) || _MSC_VER >= 1600
# define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message)