diff options
-rw-r--r-- | lib/jump-dis.c | 4 | ||||
-rw-r--r-- | lib/substitute-internal.h | 7 | ||||
-rw-r--r-- | lib/transform-dis.c | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/lib/jump-dis.c b/lib/jump-dis.c index b6ddd13..beb6ffc 100644 --- a/lib/jump-dis.c +++ b/lib/jump-dis.c @@ -1,5 +1,5 @@ #include "substitute-internal.h" -#ifndef TARGET_UNSUPPORTED +#ifdef TARGET_SUPPORTED #include "dis.h" #include <stdint.h> #include <stdbool.h> @@ -162,4 +162,4 @@ fail: } #include TARGET_DIS_HEADER -#endif /* TARGET_UNSUPPORTED */ +#endif /* TARGET_SUPPORTED */ diff --git a/lib/substitute-internal.h b/lib/substitute-internal.h index cf50a99..e89715f 100644 --- a/lib/substitute-internal.h +++ b/lib/substitute-internal.h @@ -35,19 +35,20 @@ typedef struct section section_x; #define TARGET_UNSUPPORTED #elif defined(FORCE_TARGET_arm) #define TARGET_arm + #define TARGET_SUPPORTED #elif defined(FORCE_TARGET_arm64) #define TARGET_arm64 + #define TARGET_SUPPORTED #elif defined(__x86_64__) #define TARGET_x86_64 #elif defined(__i386__) #define TARGET_i386 #elif defined(__arm__) #define TARGET_arm + #define TARGET_SUPPORTED #elif defined(__arm64__) #define TARGET_arm64 + #define TARGET_SUPPORTED #else #error target? #endif -#if defined(TARGET_x86_64) || defined(TARGET_i386) - #define TARGET_UNSUPPORTED -#endif diff --git a/lib/transform-dis.c b/lib/transform-dis.c index b8df987..32c012b 100644 --- a/lib/transform-dis.c +++ b/lib/transform-dis.c @@ -1,5 +1,5 @@ #include "substitute-internal.h" -#ifndef TARGET_UNSUPPORTED +#ifdef TARGET_SUPPORTED #include "substitute.h" #include "dis.h" @@ -121,4 +121,4 @@ static inline void op32(struct transform_dis_ctx *ctx, uint32_t op) { #endif #include TARGET_DIS_HEADER -#endif /* TARGET_UNSUPPORTED */ +#endif /* TARGET_SUPPORTED */ |