-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python defines __BSD_VISIBLE 1 in pyconfig.h #5113
Comments
Could you please provide the reasons why that constant should not be defined? |
No other reason than it is undefined in earlier Cygwin versions. $ cat /usr/include/python3.9/pyconfig.h | grep BSD_VISIBLE |
Does defining it cause any issue? |
When compiling numpy and __BSD_VISIBLE is defined:
When it is undefined:
|
There is a mingw numpy package https://packages.msys2.org/base/mingw-w64-python-numpy. msys python is used for bootstrapping purposes. |
I am aware of MinGW packages but I got the idea to use MSYS2 as a Cygwin replacement. |
That's odd, it looks like |
I think this is a bug with numpy, it should be including Python.h before any system header (such as assert.h) to make sure the feature macros are all set as expected. |
Description / Steps to reproduce the issue
#define __BSD_VISIBLE 1
Expected behavior
It should be:
$ cat /usr/include/python3.12/pyconfig.h | grep BSD_VISIBLE
/* #undef __BSD_VISIBLE */
Actual behavior
For some reason __BSD_VISIBLE is defined as 1 on MSYS2.
Verification
Windows Version
MINGW64_NT-10.0-27764
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: