From 021fc626526a141a4deae4f2e60669546209cf2c Mon Sep 17 00:00:00 2001 From: Peter Gal Date: Thu, 16 Jul 2015 19:32:56 +0200 Subject: [PATCH] Fix endian detection on 32bit When using the -std=c99 the gcc does not defines the i386 macro just the __i386 and __ i386 __. Fixes issue #355 JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com --- third-party/fdlibm/include/fdlibm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third-party/fdlibm/include/fdlibm.h b/third-party/fdlibm/include/fdlibm.h index 817f22a8c..fcee3cfeb 100644 --- a/third-party/fdlibm/include/fdlibm.h +++ b/third-party/fdlibm/include/fdlibm.h @@ -13,7 +13,8 @@ /* Sometimes it's necessary to define __LITTLE_ENDIAN explicitly but these catch some common cases. */ -#if defined(i386) || defined(i486) || \ +#if defined(i386) || defined(__i386) || defined(__i386__) || \ + defined(i486) || defined(__i486) || defined(__i486__) || \ defined(intel) || defined(x86) || defined(i86pc) || \ defined(__alpha) || defined(__osf__) || \ defined(__x86_64__) || defined(__arm__)