Skip to content

Commit 857ee1a

Browse files
committed
bug fix: missing common.h include before using PYBIND11_SIMPLE_GIL_MANAGEMENT
For the tests in the github CI this does not matter, because `PYBIND11_SIMPLE_GIL_MANAGEMENT` is always defined from the command line, but when monkey-patching common.h locally, it matters.
1 parent ab45337 commit 857ee1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/pybind11/detail/internals.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
#pragma once
1111

12+
#include "common.h"
13+
1214
#if defined(WITH_THREAD) && defined(PYBIND11_SIMPLE_GIL_MANAGEMENT)
1315
# include "../gil.h"
1416
#endif

0 commit comments

Comments
 (0)