-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
MSYS2 64-bit's gcc does not define __WIN32__
by default
#45
Comments
It sounds like adding |
@alexcrichton PR submitted! |
Closing in favor of rust-lang/cc-rs#19, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting an error for missing symbols in
time_helpers.c
:This is a fresh MSYS2 install, plus gcc grabbed through the included pacman.
It looks like the C preprocessor isn't predefining
__WIN32__
unless-mwin32
is passed:Not sure if this belongs here or
gcc-rs
. Patchingtime
to add the-mwin32
flag fortarget_os = "windows"
did the trick, then I needed to gettchar.h
frompacman -S mingw-w64-x86_64-headers
and copy it into/usr/include
.The text was updated successfully, but these errors were encountered: