Skip to content

Commit b47be2d

Browse files
committed
Move PYBIND11_BUILD_TYPE down in the file, so that the order of macro definitions is the same as in the list defining PYBIND11_PLATFORM_ABI_ID
1 parent 3f90808 commit b47be2d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

include/pybind11/conduit/pybind11_platform_abi_id.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
#define PYBIND11_PLATFORM_ABI_ID_STRINGIFY(x) #x
1313
#define PYBIND11_PLATFORM_ABI_ID_TOSTRING(x) PYBIND11_PLATFORM_ABI_ID_STRINGIFY(x)
1414

15-
// On MSVC, debug and release builds are not ABI-compatible!
16-
#if defined(_MSC_VER) && defined(_DEBUG)
17-
# define PYBIND11_BUILD_TYPE "_debug"
18-
#else
19-
# define PYBIND11_BUILD_TYPE ""
20-
#endif
21-
2215
// Let's assume that different compilers are ABI-incompatible.
2316
// A user can manually set this string if they know their
2417
// compiler is compatible.
@@ -82,6 +75,14 @@
8275
# endif
8376
#endif
8477

78+
// On MSVC, debug and release builds are not ABI-compatible!
79+
#if defined(_MSC_VER) && defined(_DEBUG)
80+
# define PYBIND11_BUILD_TYPE "_debug"
81+
#else
82+
# define PYBIND11_BUILD_TYPE ""
83+
#endif
84+
85+
// Obsolete and slated for removal. DO NOT USE!
8586
#ifndef PYBIND11_INTERNALS_KIND
8687
# define PYBIND11_INTERNALS_KIND ""
8788
#endif

0 commit comments

Comments
 (0)