Skip to content

Commit

Permalink
Fix POTASSCO_HAS_STATIC_ASSERT detection.
Browse files Browse the repository at this point in the history
* Don't redefine a static_assert macro defined by the compiler's
  standard library.

relates to: potassco/clingo#489
BenKaufmann committed Mar 18, 2024
1 parent 69b677f commit a8048a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion potassco/platform.h
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
#include <cstdlib>
#include <cerrno>
#if !defined(POTASSCO_HAS_STATIC_ASSERT)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(_MSC_VER) && _MSC_VER >= 1600) || (defined(static_assert) && !defined(_LIBCPP_VERSION))
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(_MSC_VER) && _MSC_VER >= 1600) || defined(static_assert)
# define POTASSCO_HAS_STATIC_ASSERT 1
# else
# define POTASSCO_HAS_STATIC_ASSERT 0

0 comments on commit a8048a1

Please sign in to comment.