Skip to content

Commit 65be0e0

Browse files
committed
Only iterate over multiple calling conventions on x86.
1 parent d4d41d9 commit 65be0e0

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

test/calling_conventions.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
//------------------------------------------------------------------------------
1818
// this section is the main body of the test extension module
1919

20-
#define BOOST_PYTHON_ENABLE_CDECL
21-
#define BOOST_PYTHON_ENABLE_STDCALL
22-
#define BOOST_PYTHON_ENABLE_FASTCALL
20+
#if defined(_WIN32) && !defined(_WIN64)
21+
# define BOOST_PYTHON_ENABLE_CDECL
22+
# define BOOST_PYTHON_ENABLE_STDCALL
23+
# define BOOST_PYTHON_ENABLE_FASTCALL
24+
#endif
2325
#include <boost/preprocessor/cat.hpp>
2426
#include <boost/preprocessor/stringize.hpp>
2527
#include <boost/python.hpp>

test/calling_conventions_mf.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
//------------------------------------------------------------------------------
1818
// this section is the main body of the test extension module
1919

20-
#define BOOST_PYTHON_ENABLE_CDECL
21-
#define BOOST_PYTHON_ENABLE_STDCALL
22-
#define BOOST_PYTHON_ENABLE_FASTCALL
20+
#if defined(_WIN32) && !defined(_WIN64)
21+
# define BOOST_PYTHON_ENABLE_CDECL
22+
# define BOOST_PYTHON_ENABLE_STDCALL
23+
# define BOOST_PYTHON_ENABLE_FASTCALL
24+
#endif
2325
#include <boost/preprocessor/cat.hpp>
2426
#include <boost/preprocessor/stringize.hpp>
2527
#include <boost/python.hpp>

0 commit comments

Comments
 (0)