-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Build error with MinGW (Mingw-w64) due to missing Windows.h (with capital W) #370
Comments
Oh gosh...... I'll fix this in the coming days - I hope I don't ever forget that and switch it back because of "compiler warnings"... Thanks for reporting! |
pushed in the dev branch |
Okay, I think I've also got hit by this change. The only problem is that I use clang so I don't have those fancy mingw defines. Why can't we just use the lowercase windows.h always? Even microsoft itself isn't consistent about the casing of this file. |
@u3shit Just pushed a fix in the |
@onqtam checked it, it fixes the issue for me 👍 |
Description
After PR #336 it's no longer possible to use doctest for Win32 cross-compilation using e.g. Mingw-w64 on a case sensitive file system.
Steps to reproduce
On a Linux system (I'm currently using Ubuntu 19.10):
git clone https://github.com/onqtam/doctest.git
cd doctest
printf '#define DOCTEST_CONFIG_IMPLEMENT\n#include "doctest/doctest.h"\n' >test.cpp
i686-w64-mingw32-g++-posix -c test.cpp
Using the lowercase version of
windows.h
works:sed -i 's/Windows\.h/windows.h/' doctest/doctest.h
i686-w64-mingw32-g++-posix -c test.cpp && echo success
(printssuccess
)Extra information
Maybe of interest:
The text was updated successfully, but these errors were encountered: