Skip to content

Commit 893a3e3

Browse files
Add missing macro.
1 parent f05653e commit 893a3e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/pybind11/detail/non_limited_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define NOMINMAX 1
1111
#include <windows.h>
1212
#else
13+
#define _GNU_SOURCE 1 // `<dlfcn.h>` needs this to define the things we need.
1314
#include <dlfcn.h> // `dladdr` and friends.
1415
#endif
1516

0 commit comments

Comments
 (0)