Fix -Werror build failure in RtsMain
authorTamar Christina <tamar@zhox.com>
Wed, 4 Mar 2015 01:41:43 +0000 (19:41 -0600)
committerAustin Seipp <austin@well-typed.com>
Wed, 4 Mar 2015 01:41:44 +0000 (19:41 -0600)
Summary:
Something in Excn.h's include chain is loading _mingw.h which is defining a macro that
PosixSource.h is going to define.

_mingw.h's version properly checks if it has already been defined and skips it, so fixing the warning can be done
by just including Excn.h later (moved it to before last include).

Test Plan: ./validate

Reviewers: austin

Reviewed By: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D698

rts/RtsMain.c

index 667c9e4..154eafa 100644 (file)
@@ -8,7 +8,6 @@
 
 #define COMPILING_RTS_MAIN
 
-#include "Excn.h"
 #include "PosixSource.h"
 #include "Rts.h"
 #include "RtsAPI.h"
@@ -16,6 +15,7 @@
 #include "RtsUtils.h"
 #include "Prelude.h"
 #include "Task.h"
+#include "Excn.h"
 
 #ifdef DEBUG
 # include "Printer.h"   /* for printing        */