Skip to content

Commit 021fc62

Browse files
committed
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
1 parent 9513808 commit 021fc62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

third-party/fdlibm/include/fdlibm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
/* Sometimes it's necessary to define __LITTLE_ENDIAN explicitly
1414
but these catch some common cases. */
1515

16-
#if defined(i386) || defined(i486) || \
16+
#if defined(i386) || defined(__i386) || defined(__i386__) || \
17+
defined(i486) || defined(__i486) || defined(__i486__) || \
1718
defined(intel) || defined(x86) || defined(i86pc) || \
1819
defined(__alpha) || defined(__osf__) || \
1920
defined(__x86_64__) || defined(__arm__)

0 commit comments

Comments
 (0)