From e673b8408d84f9149f88964c3318059984eb7788 Mon Sep 17 00:00:00 2001 From: Tamar Christina Date: Tue, 3 Mar 2015 19:41:43 -0600 Subject: Fix -Werror build failure in RtsMain 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts/RtsMain.c') diff --git a/rts/RtsMain.c b/rts/RtsMain.c index 667c9e4ae2..154eafa0e0 100644 --- a/rts/RtsMain.c +++ b/rts/RtsMain.c @@ -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 */ -- cgit v1.2.1