Commit ba19432d authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Move from asm to __asm by default

- GCC with -std=c99 warns about asm but likes __asm
_ armcc5 has __asm but not asm
parent cb46fd82
......@@ -42,6 +42,10 @@
#if defined(MBEDTLS_HAVE_ASM)
#ifndef asm
#define asm __asm
#endif
#if defined(__GNUC__)
#if defined(__i386__)
......
......@@ -37,6 +37,10 @@
#include <string.h>
#ifndef asm
#define asm __asm
#endif
#if defined(MBEDTLS_HAVE_X86_64)
/*
......
......@@ -38,6 +38,10 @@
#include <string.h>
#ifndef asm
#define asm __asm
#endif
#if defined(MBEDTLS_HAVE_X86)
/*
......
......@@ -39,6 +39,10 @@
#if !defined(MBEDTLS_TIMING_ALT)
#ifndef asm
#define asm __asm
#endif
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
#include <windows.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment