Skip to content

Commit 4c56995

Browse files
Get rid of _GNU_SOURCE, it didn't work anyway.
1 parent 893a3e3 commit 4c56995

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/pybind11/detail/non_limited_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
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.
13+
// NOTE: If you get `error: unknown type name 'Dl_info'` when using this patched `PYBIND11_MODULE(...)`,
14+
// define `_GNU_SOURCE`. Use compiler flags to make sure it's early enough.
1415
#include <dlfcn.h> // `dladdr` and friends.
1516
#endif
1617

0 commit comments

Comments
 (0)