From 72585772efed4a238050f4f6ca9ec97e352f2684 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 12 Apr 2024 17:32:58 +0630 Subject: Fixing build problems due to endian.h Have to define _DEFAULT_SOURCE before you can use the endian conversion functions. As most standard library headers use features.h, and _DEFAULT_SOURCE must be defined before features.h is included, we have to include base.h before other headers. --- lib/inst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/inst.c') diff --git a/lib/inst.c b/lib/inst.c index eb8b5d2..f3f0598 100644 --- a/lib/inst.c +++ b/lib/inst.c @@ -10,13 +10,13 @@ * Description: Implementation of bytecode for instructions */ +#include "./inst.h" + #include #include #include #include -#include "./inst.h" - const char *opcode_as_cstr(opcode_t code) { switch (code) -- cgit v1.2.3-13-gbd6f