Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
[v23] Patch for configure.in, aclocal.m4, ios.m4, vm/NumericConversio…
Browse files Browse the repository at this point in the history
…ns.h.
  • Loading branch information
James Chen committed Aug 6, 2013
1 parent 40270c2 commit efb51d7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/src/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ builtin(include, build/autoconf/compiler-opts.m4)dnl
builtin(include, build/autoconf/expandlibs.m4)dnl
builtin(include, build/autoconf/arch.m4)dnl
builtin(include, build/autoconf/android.m4)dnl
builtin(include, build/autoconf/ios.m4)dnl
builtin(include, build/autoconf/zlib.m4)dnl
builtin(include, build/autoconf/linux.m4)dnl
builtin(include, build/autoconf/python-virtualenv.m4)dnl
Expand Down
7 changes: 7 additions & 0 deletions js/src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ MOZ_ARG_WITH_STRING(gonk-toolchain-prefix,
prefix to gonk toolchain commands],
gonk_toolchain_prefix=$withval)

MOZ_ARG_WITH_STRING(ios-target,
[ --with-ios-target=SDK
what target sdk to use, defaults to iPhoneSimulator],
ios_target=$withval)

if test -n "$gonkdir" ; then
kernel_name=`uname -s | tr "[[:upper:]]" "[[:lower:]]"`

Expand Down Expand Up @@ -213,6 +218,8 @@ if test -n "$gonkdir" ; then
AC_DEFINE(ANDROID)
AC_DEFINE(GONK)
CROSS_COMPILE=1
elif test -n "$ios_target" ; then
MOZ_IOS_SDK
else
MOZ_ANDROID_NDK
fi
Expand Down
4 changes: 4 additions & 0 deletions js/src/jspubtd.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ struct Zone;
* oblivious to the change. This feature can be explicitly disabled in debug
* builds by defining JS_NO_JSVAL_JSID_STRUCT_TYPES.
*/

// Needed for cocos2d-js
#define JS_NO_JSVAL_JSID_STRUCT_TYPES

# if defined(DEBUG) && !defined(JS_NO_JSVAL_JSID_STRUCT_TYPES)
# define JS_USE_JSID_STRUCT_TYPES
# endif
Expand Down
2 changes: 1 addition & 1 deletion js/src/vm/NumericConversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ ToIntWidth(double d)
inline int32_t
ToInt32(double d)
{
#if defined (__arm__) && defined (__GNUC__)
#if defined (__arm__) && defined (__GNUC__) && !defined(__clang__)
int32_t i;
uint32_t tmp0;
uint32_t tmp1;
Expand Down

0 comments on commit efb51d7

Please sign in to comment.