source: webkit/trunk/JavaScriptCore/JavaScriptCorePrefix.h@ 58167

Last change on this file since 58167 was 41764, checked in by [email protected], 16 years ago

Reviewed by Mark Rowe.

Move BUILDING_ON_* defines into Platform.h to make them available to other ports.
Also tweak the defines so that they work with the default values set by
AvailabilityMacros.h.

https://bugs.webkit.org/show_bug.cgi?id=24630

  • Property svn:eol-style set to native
File size: 755 bytes
Line 
1#ifdef __cplusplus
2#define NULL __null
3#else
4#define NULL ((void *)0)
5#endif
6
7#include <ctype.h>
8#include <float.h>
9#include <locale.h>
10#include <math.h>
11#include <stdio.h>
12#include <stdlib.h>
13#include <string.h>
14#include <strings.h>
15#include <time.h>
16#include <sys/param.h>
17#include <sys/time.h>
18#include <sys/timeb.h>
19#include <sys/types.h>
20
21#ifdef __cplusplus
22
23#include <list>
24#include <typeinfo>
25
26#endif
27
28#ifdef __cplusplus
29#define new ("if you use new/delete make sure to include config.h at the top of the file"())
30#define delete ("if you use new/delete make sure to include config.h at the top of the file"())
31#endif
32
33/* Work around bug with C++ library that screws up Objective-C++ when exception support is disabled. */
34#undef try
35#undef catch
Note: See TracBrowser for help on using the repository browser.