aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/endian.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/d10v/endian.c')
-rw-r--r--sim/d10v/endian.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/d10v/endian.c b/sim/d10v/endian.c
index dbc3db2..70f63d8 100644
--- a/sim/d10v/endian.c
+++ b/sim/d10v/endian.c
@@ -1,6 +1,9 @@
/* If we're being compiled as a .c file, rather than being included in
d10v_sim.h, then ENDIAN_INLINE won't be defined yet. */
+/* This must come before any other includes. */
+#include "defs.h"
+
#ifndef ENDIAN_INLINE
#define NO_ENDIAN_INLINE
#include "sim-main.h"