source: webkit/trunk/JavaScriptCore/kjs/config.h@ 10713

Last change on this file since 10713 was 10713, checked in by mjs, 20 years ago

Patch from George Staikos <[email protected]>, reviewed and tweaked a bit by me.

http://bugzilla.opendarwin.org/show_bug.cgi?id=5174
Add support for compiling on Linux (likely to help for other POSIX systems too)

  • kjs/collector.cpp: (KJS::Collector::markCurrentThreadConservatively): (KJS::Collector::markOtherThreadConservatively):
  • kjs/config.h:
  • kjs/date_object.cpp: (KJS::formatDate): (KJS::formatDateUTCVariant): (KJS::formatTime): (KJS::timeZoneOffset): (KJS::DateProtoFuncImp::callAsFunction): (KJS::DateObjectImp::construct): (KJS::DateObjectImp::callAsFunction): (KJS::makeTime):
  • kjs/identifier.cpp:
  • kjs/internal.cpp: (KJS::initializeInterpreterLock): (KJS::lockInterpreter): (KJS::unlockInterpreter): (KJS::UndefinedImp::toPrimitive): (KJS::UndefinedImp::toBoolean): (KJS::UndefinedImp::toNumber): (KJS::UndefinedImp::toString): (KJS::NullImp::toPrimitive): (KJS::NullImp::toBoolean): (KJS::NullImp::toNumber): (KJS::NullImp::toString): (KJS::BooleanImp::toPrimitive): (KJS::BooleanImp::toBoolean): (KJS::BooleanImp::toNumber): (KJS::BooleanImp::toString): (KJS::StringImp::toPrimitive): (KJS::StringImp::toBoolean): (KJS::StringImp::toNumber): (KJS::StringImp::toString):
  • kjs/internal.h:
  • kjs/protected_values.cpp:
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 848 bytes
Line 
1#if __APPLE__
2
3#define HAVE_FUNC_ISINF 1
4#define HAVE_FUNC_ISNAN 1
5#define HAVE_STRINGS_H 1
6#define HAVE_SYS_PARAM_H 1
7#define HAVE_SYS_TIME_H 1
8#define TIME_WITH_SYS_TIME 1
9
10#elif WIN32
11
12#define HAVE_FLOAT_H 1
13#define HAVE_FUNC__FINITE 1
14#define HAVE_SYS_TIMEB_H 1
15
16#else
17
18#define HAVE_FUNC_ISINF 1
19#define HAVE_FUNC_ISNAN 1
20#define HAVE_STRINGS_H 1
21#define HAVE_SYS_PARAM_H 1
22#define HAVE_SYS_TIME_H 1
23#define TIME_WITH_SYS_TIME 1
24#define HAVE_ERRNO_H 1
25
26#endif
27
28#define HAVE_FUNC_STRTOLL 1
29#define HAVE_ICU 1
30#define HAVE_PCREPOSIX 1
31#define HAVE_STRING_H 1
32#define HAVE_STDINT_H 1
33
34#define HAVE_MMAP 1
35#define HAVE_SBRK 1
36
37#ifdef __ppc__
38#define WORDS_BIGENDIAN 1
39#endif
40
41/* define to debug garbage collection */
42#undef DEBUG_COLLECTOR
43
44#define KXC_CHANGES 1
45
46#ifdef __cplusplus
47#undef new
48#undef delete
49#include <kxmlcore/FastMalloc.h>
50#endif
Note: See TracBrowser for help on using the repository browser.