Skip to content

Commit 225cb46

Browse files
committed
Fix forward declaration
1 parent 00bcf66 commit 225cb46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/pybind11/detail/internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class pymutex {
241241

242242
# if !(defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x030E00C1 /* 3.14.0rc1 */)
243243
// Forward declaration of internal slow path function for usage in pycritical_section
244-
void _PyCriticalSection_BeginSlow(PyCriticalSection *c, PyMutex *m);
244+
extern "C" void _PyCriticalSection_BeginSlow(PyCriticalSection *c, PyMutex *m);
245245
# endif
246246

247247
class pycritical_section {

0 commit comments

Comments
 (0)