Move from asm to __asm by default

- GCC with -std=c99 warns about asm but likes __asm
_ armcc5 has __asm but not asm
This commit is contained in:
Manuel Pégourié-Gonnard 2015-05-29 09:47:57 +02:00
parent cb46fd8216
commit ba19432d2e
4 changed files with 16 additions and 0 deletions

View File

@ -42,6 +42,10 @@
#if defined(MBEDTLS_HAVE_ASM)
#ifndef asm
#define asm __asm
#endif
#if defined(__GNUC__)
#if defined(__i386__)

View File

@ -37,6 +37,10 @@
#include <string.h>
#ifndef asm
#define asm __asm
#endif
#if defined(MBEDTLS_HAVE_X86_64)
/*

View File

@ -38,6 +38,10 @@
#include <string.h>
#ifndef asm
#define asm __asm
#endif
#if defined(MBEDTLS_HAVE_X86)
/*

View File

@ -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>