Skip to content

Commit

Permalink
Improve compatibility for environments without static_assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsteffensmeier committed Nov 19, 2022
1 parent ae003cb commit d8cd41b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/c/Include/jep_platform.h
Expand Up @@ -35,7 +35,10 @@
#include <Python.h>
#include <assert.h>

static_assert(PY_MAJOR_VERSION >= 3,"There is no Python 2 support!");
#if PY_MAJOR_VERSION < 3
static_assert(PY_MAJOR_VERSION >= 3,"There is no Python 2 support!");
#endif

#ifdef WIN32
#include "winconfig.h"
#endif
Expand Down

0 comments on commit d8cd41b

Please sign in to comment.