Skip to content

Commit

Permalink
Merge pull request #1675 from svaarala/fix-msvc2015-arm-compile
Browse files Browse the repository at this point in the history
Add ARM32/ARM64 to pointer size detection to fix MSVC2015 ARM compile
  • Loading branch information
svaarala authored Aug 14, 2017
2 parents c1e4038 + 285e50a commit 31f5fac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions RELEASES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3072,6 +3072,8 @@ Planned

* Fix harmless GCC 7 -Wextra warning in Date built-in (GH-1646)

* Fix pointer size detection for MSVC2015 ARM32/ARM64 (GH-1577, GH-1675)

* Improve support for old MSVC versions without __pragma(), long long, and
LL/ULL constants (GH-1559, GH-1562)

Expand Down
6 changes: 4 additions & 2 deletions config/header-snippets/types1.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@
defined(DUK_F_BCC) || \
(defined(__WORDSIZE) && (__WORDSIZE == 32)) || \
((defined(DUK_F_OLD_SOLARIS) || defined(DUK_F_AIX) || \
defined(DUK_F_HPUX)) && defined(_ILP32))
defined(DUK_F_HPUX)) && defined(_ILP32)) || \
defined(DUK_F_ARM32)
#define DUK_F_32BIT_PTRS
#elif defined(DUK_F_X64) || \
(defined(__WORDSIZE) && (__WORDSIZE == 64)) || \
((defined(DUK_F_OLD_SOLARIS) || defined(DUK_F_AIX) || \
defined(DUK_F_HPUX)) && defined(_LP64))
defined(DUK_F_HPUX)) && defined(_LP64)) || \
defined(DUK_F_ARM64)
#define DUK_F_64BIT_PTRS
#else
/* not sure, not needed with C99 anyway */
Expand Down

0 comments on commit 31f5fac

Please sign in to comment.