зеркало из https://github.com/mozilla/gecko-dev.git
Родитель
05e5f933f1
Коммит
890f5269df
|
@ -148,7 +148,7 @@ js_compare_atom_keys(const void *k1, const void *k2)
|
|||
double d2 = *JSVAL_TO_DOUBLE(v2);
|
||||
if (JSDOUBLE_IS_NaN(d1))
|
||||
return JSDOUBLE_IS_NaN(d2);
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) || defined(XP_OS2)
|
||||
/* XXX MSVC miscompiles such that (NaN == 0) */
|
||||
if (JSDOUBLE_IS_NaN(d2))
|
||||
return JS_FALSE;
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#include <Types.h>
|
||||
#define INT64 UnsignedWide
|
||||
#else
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) || defined(XP_OS2)
|
||||
#ifdef WIN32
|
||||
#if defined(__GNUC__)
|
||||
#define INT64 long long
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
# define FILESEPARATOR2 '\0'
|
||||
# define CURRENT_DIR "HARD DISK:Desktop Folder"
|
||||
/* TODO: #include <???> */
|
||||
#elif defined(XP_PC) || defined(XP_OS2)
|
||||
#elif defined(XP_WIN) || defined(XP_OS2)
|
||||
# include <direct.h>
|
||||
# include <io.h>
|
||||
# include <sys/types.h>
|
||||
|
|
|
@ -136,7 +136,7 @@ JSJ_NewHashTable(JSUint32 n, JSJHashFunction keyHash,
|
|||
memset(ht, 0, sizeof *ht);
|
||||
ht->shift = JSJ_HASH_BITS - n;
|
||||
n = 1 << n;
|
||||
#if defined(XP_PC) && !defined(_WIN32)
|
||||
#if (defined(XP_WIN) || defined(XP_OS2)) && !defined(_WIN32)
|
||||
if (n > 16000) {
|
||||
(*allocOps->freeTable)(allocPriv, ht);
|
||||
return 0;
|
||||
|
@ -235,7 +235,7 @@ JSJ_HashTableRawAdd(JSJHashTable *ht, JSJHashEntry **hep,
|
|||
#endif
|
||||
ht->shift--;
|
||||
oldbuckets = ht->buckets;
|
||||
#if defined(XP_PC) && !defined(_WIN32)
|
||||
#if (defined(XP_WIN) || defined(XP_OS2)) && !defined(_WIN32)
|
||||
if (2 * n > 16000)
|
||||
return 0;
|
||||
#endif /* WIN16 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче