Skip to content
Snippets Groups Projects
  • Eleni Mathioulaki's avatar
    Update packages/py-pybind11/package.py,... · 37195eec
    Eleni Mathioulaki authored
    Update packages/py-pybind11/package.py, packages/fmt/fmt-attributes-cpp11_4.1.0.patch, packages/fmt/fmt-no-export-cpp11flag_3.0.0.patch, packages/fmt/fmt-use-cmake-cxx-standard_3.0.0.patch, packages/fmt/package.py
    37195eec
fmt-attributes-cpp11_4.1.0.patch 501 B
diff --git a/fmt/format.h b/fmt/format.h
index 561a9e0..9faf5ca 100644
--- a/fmt/format.h
+++ b/fmt/format.h
@@ -153,7 +153,7 @@ typedef __int64          intmax_t;
 # define FMT_HAS_CPP_ATTRIBUTE(x) 0
 #endif
 
-#if FMT_HAS_CPP_ATTRIBUTE(maybe_unused)
+#if FMT_HAS_CPP_ATTRIBUTE(maybe_unused) && __cplusplus >= 201103L
 # define FMT_HAS_CXX17_ATTRIBUTE_MAYBE_UNUSED
 // VC++ 1910 support /std: option and that will set _MSVC_LANG macro
 // Clang with Microsoft CodeGen doesn't define _MSVC_LANG macro