Commit ae431cf4 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

rts: Ensure that Rts.h is always included first

In general this is the convention that we use in the RTS. On Windows
things actually fail if we break it. For instance, you see things like:

   includes\stg\Types.h:26:9: error:
     warning: #warning "Mismatch between __USE_MINGW_ANSI_STDIO
     definitions. If using Rts.h make sure it is the first header
     included." [-Wcpp]
parent b1c158c9
#include "Rts.h"
#include "elf_got.h"
#include <string.h>
#if defined(OBJFORMAT_ELF)
......
#include "Rts.h"
#include "elf_plt.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "elf_plt.h"
#if defined(arm_HOST_ARCH) || defined(aarch64_HOST_ARCH)
#if defined(OBJFORMAT_ELF)
......
#include <stdlib.h>
#include "Rts.h"
#include "elf_compat.h"
#include "elf_plt_aarch64.h"
#include <stdlib.h>
#if defined(aarch64_HOST_ARCH)
#if defined(OBJFORMAT_ELF)
......
#include "Rts.h"
#include "elf_compat.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "elf_compat.h"
#include "ghcplatform.h"
#if defined(arm_HOST_ARCH)
......
#include "Rts.h"
#include "elf_reloc.h"
#include "elf_plt.h"
......
#include <stdlib.h>
#include <assert.h>
#include "Rts.h"
#include "elf_compat.h"
#include "elf_reloc_aarch64.h"
#include "util.h"
#include "elf_util.h"
#include "elf_plt.h"
#include <stdlib.h>
#include <assert.h>
#if defined(aarch64_HOST_ARCH)
#if defined(OBJFORMAT_ELF)
......
#include "Rts.h"
#include "linker/elf_util.h"
#if defined(OBJFORMAT_ELF)
......
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