Skip to content

Commit d353b45

Browse files
committed
Connecting PYBIND11_INTERNALS_VERSION to PYBIND11_USE_SMART_HOLDER_AS_DEFAULT.
1 parent 7eb6d6f commit d353b45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/pybind11/detail/internals.h

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#pragma once
1111

1212
#include "../pytypes.h"
13+
#include "smart_holder_sfinae_hooks_only.h"
1314

1415
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
1516
PYBIND11_NAMESPACE_BEGIN(detail)
@@ -150,7 +151,11 @@ struct type_info {
150151
};
151152

152153
/// Tracks the `internals` and `type_info` ABI version independent of the main library version
154+
#ifndef PYBIND11_USE_SMART_HOLDER_AS_DEFAULT
153155
#define PYBIND11_INTERNALS_VERSION 4
156+
#else
157+
#define PYBIND11_INTERNALS_VERSION 1004
158+
#endif
154159

155160
/// On MSVC, debug and release builds are not ABI-compatible!
156161
#if defined(_MSC_VER) && defined(_DEBUG)

0 commit comments

Comments
 (0)