Skip to content

Commit

Permalink
Fix build failure building with Python 3.12 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Nov 1, 2023
1 parent d46078b commit 03b1b64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/modules/IcePy/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@
# undef _POSIX_C_SOURCE
#endif

#ifdef _WIN32
// suppress C4100: '_unused_op': unreferenced formal parameter in Python 3.12 cpython/unicodeobject.h
# pragma warning( disable : 4100)
#endif

#include <Python.h>

#ifdef _WIN32
# pragma warning( default : 4100)
#endif

#ifdef STRCAST
# error "STRCAST already defined!"
#endif
Expand Down

0 comments on commit 03b1b64

Please sign in to comment.