Bug #1159
fff.h:33:2: error: 'BYTE' does not name a type
100%
Description
Files
Related issues
Associated revisions
History
Updated by Robin Mills almost 6 years ago
- Status changed from New to Assigned
- Assignee set to Robin Mills
- Target version set to 0.26
- % Done changed from 0 to 20
- Estimated time set to 2.00 h
Are you cross compiling?
It compiles with MSVC (2003..2015) and GCC (Cygwin and MinGW). If you add #include <windef.h>, do it build for you? If this is working on your platform, I'll submit the change and the buildserver will build it with MSVC, Cygwin and MinGW.
Updated by Jakub Wilk almost 6 years ago
Yes, I'm cross-compiling (./configure --host=i686-w64-mingw32
).
Yes, adding the include fixed the build failure for me.
I don't understand why it built successfully when building natively. :-O
Updated by Robin Mills almost 6 years ago
Thanks, Jakub. I've submitted your patch. I'll check the buildserver later to be sure it has build and passed the test suite on our supported platforms.
I can't really offer any thoughts about why it doesn't cross compile as I've never succeeded in cross-compiling (with or without this issue). I think the "Native" platforms (not cross compiling) include <windows.h> which ultimately includes "windef.h". However let's not discuss how things don't work. Let's be happy that you've found and fixed this.
Updated by Robin Mills almost 6 years ago
- % Done changed from 20 to 100
#1159. Thank You, Jakub for discovering this issue and for providing a patch.