diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-12 17:32:58 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-12 17:32:58 +0630 |
commit | 72585772efed4a238050f4f6ca9ec97e352f2684 (patch) | |
tree | 6e1a79c6f850774a9713fbc87841265c34d4b2b9 /lib/inst.h | |
parent | a8a2c50a8f27641dbdaa510df62c40edc77bce01 (diff) | |
download | ovm-72585772efed4a238050f4f6ca9ec97e352f2684.tar.gz ovm-72585772efed4a238050f4f6ca9ec97e352f2684.tar.bz2 ovm-72585772efed4a238050f4f6ca9ec97e352f2684.zip |
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.
Diffstat (limited to 'lib/inst.h')
-rw-r--r-- | lib/inst.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,12 +13,12 @@ #ifndef INST_H #define INST_H -#include <stdio.h> -#include <stdlib.h> - #include <lib/base.h> #include <lib/darr.h> +#include <stdio.h> +#include <stdlib.h> + typedef enum { OP_NOOP = 0, |