Commit 72d3f4b7 authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Make the Windows-specific part of mkDerivedConstants.c conditional

It is only generated when mode is Gen_Header; i.e. it's not used
in the compiler, only the RTS.
parent f89b73e6
......@@ -570,10 +570,15 @@ main(int argc, char *argv[])
struct_field(snEntry,addr);
#ifdef mingw32_HOST_OS
struct_size(StgAsyncIOResult);
struct_field(StgAsyncIOResult, reqID);
struct_field(StgAsyncIOResult, len);
struct_field(StgAsyncIOResult, errCode);
/* Note that this conditional part only affects the C headers.
That's important, as it means we get the same PlatformConstants
type on all platforms. */
if (mode == Gen_Header) {
struct_size(StgAsyncIOResult);
struct_field(StgAsyncIOResult, reqID);
struct_field(StgAsyncIOResult, len);
struct_field(StgAsyncIOResult, errCode);
}
#endif
switch (mode) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment