]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/parallel/base.h
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / include / parallel / base.h
index 91d198f5aad2422d5f32464541a1fdb7fe067b2d..5bc5350e72340d2460f35dcb38420b1794cb27a7 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2007-2014 Free Software Foundation, Inc.
+// Copyright (C) 2007-2024 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the terms
@@ -419,7 +419,12 @@ namespace __gnu_parallel
        }
     }
 
-#define _GLIBCXX_PARALLEL_ASSERT(_Condition) __glibcxx_assert(_Condition)
+#if _GLIBCXX_PARALLEL_ASSERTIONS && defined(__glibcxx_assert_impl)
+# define _GLIBCXX_PARALLEL_ASSERT(_Condition) \
+  do { __glibcxx_assert_impl(_Condition); } while (false)
+#else
+# define _GLIBCXX_PARALLEL_ASSERT(_Condition) do { } while (false)
+#endif
 
 } //namespace __gnu_parallel