aboutsummaryrefslogtreecommitdiff
path: root/py/asmx64.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/asmx64.h
parentddbcc795509bdd4957e876189577fdada0d486ac (diff)
py: Add guarded includes for asm-based headers.
Diffstat (limited to 'py/asmx64.h')
-rw-r--r--py/asmx64.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/asmx64.h b/py/asmx64.h
index 656aff692..f3f7ec12b 100644
--- a/py/asmx64.h
+++ b/py/asmx64.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_ASMX64_H__
+#define __MICROPY_INCLUDED_PY_ASMX64_H__
+
+#include "py/mpconfig.h"
+#include "py/misc.h"
// AMD64 calling convention is:
// - args pass in: RDI, RSI, RDX, RCX, R08, R09
@@ -108,3 +113,5 @@ void asm_x64_mov_local_to_r64(asm_x64_t* as, int src_local_num, int dest_r64);
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);
+
+#endif // __MICROPY_INCLUDED_PY_ASMX64_H__