Skip to content

BLD: Allow GCC compile on mingw-w64-based systems #21887

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

Merged
merged 1 commit into from
Jul 10, 2022

Conversation

matthew-brett
Copy link
Contributor

Macro __MINGW32__ always defined for Mingw-w64 compilers (32- or
64-bit):

https://sourceforge.net/p/predef/wiki/Compilers/

Macro `__MINGW32__` always defined for Mingw-w64 compilers (32- or
64-bit):

https://sourceforge.net/p/predef/wiki/Compilers/
@seberg
Copy link
Member

seberg commented Jun 30, 2022

LGTM, just one brief question: Would #ifdef _MSC_VER make sense? We seem to use it in a few places to check for MSVC.

EDIT: Nice website!

@rgommers rgommers added the 36 - Build Build related PR label Jul 3, 2022
@rgommers
Copy link
Member

rgommers commented Jul 3, 2022

LGTM, just one brief question: Would #ifdef _MSC_VER make sense? We seem to use it in a few places to check for MSVC.

It would make sense to make that consistent I think. We use _MSC_VER a lot more, and LLVM also defines it for compatibility.

@charris charris changed the title Allow GCC compile on mingw-w64-based systems ENH: Allow GCC compile on mingw-w64-based systems Jul 5, 2022
@charris charris changed the title ENH: Allow GCC compile on mingw-w64-based systems BLD: Allow GCC compile on mingw-w64-based systems Jul 5, 2022
@charris charris merged commit 8b8ca09 into numpy:main Jul 10, 2022
@charris
Copy link
Member

charris commented Jul 10, 2022

Thanks Matthew.

lazka added a commit to lazka/numpy that referenced this pull request Sep 11, 2022
This seems to have been removed by accident in numpy#21887
stdlib.h is required for _rotr64() further down.

Fixes:
  error: call to undeclared function '_rotr64'; ISO C99 and later do not support
  implicit function declarations [-Wimplicit-function-declaration]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants