Commit e673b840 authored by Tamar Christina's avatar Tamar Christina Committed by Austin Seipp
Browse files

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
parent 6e77d45b
......@@ -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 */
......
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