From 8ab6f9067412d9f73fe88d42d81c0b4c4f1fd20b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 25 Dec 2014 23:29:19 +0200 Subject: py: Move to guarded includes for compile.h and related headers. --- py/emit.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'py/emit.h') diff --git a/py/emit.h b/py/emit.h index 1f1798fdf..8b9b368c2 100644 --- a/py/emit.h +++ b/py/emit.h @@ -33,6 +33,10 @@ * This is problematic for some emitters (x64) since they need to know the maximum * stack size to compile the entry to the function, and this affects code size. */ +#ifndef __MICROPY_INCLUDED_PY_EMIT_H__ +#define __MICROPY_INCLUDED_PY_EMIT_H__ + +#include "py/runtime0.h" typedef enum { MP_PASS_SCOPE = 1, // work out id's and their kind, and number of labels @@ -195,3 +199,5 @@ extern const emit_inline_asm_method_table_t emit_inline_thumb_method_table; emit_inline_asm_t *emit_inline_thumb_new(mp_uint_t max_num_labels); void emit_inline_thumb_free(emit_inline_asm_t *emit); + +#endif // __MICROPY_INCLUDED_PY_EMIT_H__ -- cgit v1.2.3