aboutsummaryrefslogtreecommitdiff
path: root/py/asmx86.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-01 18:07:43 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-01 18:07:43 +0000
commitebde3c694f301a99addf02c3b8ff3834f04663af (patch)
tree108d34fc69d8e45d0a1bbd8e1046cee15c159d19 /py/asmx86.h
parentddbcc795509bdd4957e876189577fdada0d486ac (diff)
py: Add guarded includes for asm-based headers.
Diffstat (limited to 'py/asmx86.h')
-rw-r--r--py/asmx86.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/asmx86.h b/py/asmx86.h
index 68c6f8294..544786cf7 100644
--- a/py/asmx86.h
+++ b/py/asmx86.h
@@ -23,6 +23,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#ifndef __MICROPY_INCLUDED_PY_ASMX86_H__
+#define __MICROPY_INCLUDED_PY_ASMX86_H__
+
+#include "py/mpconfig.h"
+#include "py/misc.h"
// x86 cdecl calling convention is:
// - args passed on the stack in reverse order
@@ -106,3 +111,5 @@ void asm_x86_mov_local_to_r32(asm_x86_t* as, int src_local_num, int dest_r32);
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);
+
+#endif // __MICROPY_INCLUDED_PY_ASMX86_H__