summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/asmarm.h2
-rw-r--r--py/asmthumb.h2
-rw-r--r--py/asmx64.h2
-rw-r--r--py/asmx86.h2
-rw-r--r--py/asmxtensa.h2
-rw-r--r--py/mperrno.h1
6 files changed, 6 insertions, 5 deletions
diff --git a/py/asmarm.h b/py/asmarm.h
index e273b98d7..8a114f8a9 100644
--- a/py/asmarm.h
+++ b/py/asmarm.h
@@ -122,7 +122,7 @@ void asm_arm_bcc_label(asm_arm_t *as, int cond, uint label);
void asm_arm_b_label(asm_arm_t *as, uint label);
void asm_arm_bl_ind(asm_arm_t *as, void *fun_ptr, uint fun_id, uint reg_temp);
-#if GENERIC_ASM_API
+#ifdef GENERIC_ASM_API
// The following macros provide a (mostly) arch-independent API to
// generate native code, and are used by the native emitter.
diff --git a/py/asmthumb.h b/py/asmthumb.h
index 52e663b3b..cedecba52 100644
--- a/py/asmthumb.h
+++ b/py/asmthumb.h
@@ -237,7 +237,7 @@ void asm_thumb_b_label(asm_thumb_t *as, uint label); // convenience: picks narro
void asm_thumb_bcc_label(asm_thumb_t *as, int cc, uint label); // convenience: picks narrow or wide branch
void asm_thumb_bl_ind(asm_thumb_t *as, void *fun_ptr, uint fun_id, uint reg_temp); // convenience
-#if GENERIC_ASM_API
+#ifdef GENERIC_ASM_API
// The following macros provide a (mostly) arch-independent API to
// generate native code, and are used by the native emitter.
diff --git a/py/asmx64.h b/py/asmx64.h
index 4499c53c3..3c2bbd006 100644
--- a/py/asmx64.h
+++ b/py/asmx64.h
@@ -114,7 +114,7 @@ void asm_x64_mov_r64_to_local(asm_x64_t* as, int src_r64, int dest_local_num);
void asm_x64_mov_local_addr_to_r64(asm_x64_t* as, int local_num, int dest_r64);
void asm_x64_call_ind(asm_x64_t* as, void* ptr, int temp_r32);
-#if GENERIC_ASM_API
+#ifdef GENERIC_ASM_API
// The following macros provide a (mostly) arch-independent API to
// generate native code, and are used by the native emitter.
diff --git a/py/asmx86.h b/py/asmx86.h
index 0b44af663..be76b1ab7 100644
--- a/py/asmx86.h
+++ b/py/asmx86.h
@@ -112,7 +112,7 @@ void asm_x86_mov_r32_to_local(asm_x86_t* as, int src_r32, int dest_local_num);
void asm_x86_mov_local_addr_to_r32(asm_x86_t* as, int local_num, int dest_r32);
void asm_x86_call_ind(asm_x86_t* as, void* ptr, mp_uint_t n_args, int temp_r32);
-#if GENERIC_ASM_API
+#ifdef GENERIC_ASM_API
// The following macros provide a (mostly) arch-independent API to
// generate native code, and are used by the native emitter.
diff --git a/py/asmxtensa.h b/py/asmxtensa.h
index 12083252e..6cfe60237 100644
--- a/py/asmxtensa.h
+++ b/py/asmxtensa.h
@@ -239,7 +239,7 @@ void asm_xtensa_mov_local_reg(asm_xtensa_t *as, int local_num, uint reg_src);
void asm_xtensa_mov_reg_local(asm_xtensa_t *as, uint reg_dest, int local_num);
void asm_xtensa_mov_reg_local_addr(asm_xtensa_t *as, uint reg_dest, int local_num);
-#if GENERIC_ASM_API
+#ifdef GENERIC_ASM_API
// The following macros provide a (mostly) arch-independent API to
// generate native code, and are used by the native emitter.
diff --git a/py/mperrno.h b/py/mperrno.h
index 328afddb1..88d95e566 100644
--- a/py/mperrno.h
+++ b/py/mperrno.h
@@ -28,6 +28,7 @@
#define __MICROPY_INCLUDED_PY_MPERRNO_H__
#include "py/mpconfig.h"
+#include "py/obj.h"
#if MICROPY_USE_INTERNAL_ERRNO