darin | 43d061b | 2003-10-27 04:21:15 +0000 | [diff] [blame] | 1 | #ifdef __cplusplus |
| 2 | #define NULL __null |
darin | cc17188 | 2003-10-27 04:29:44 +0000 | [diff] [blame] | 3 | #else |
| 4 | #define NULL ((void *)0) |
darin | 43d061b | 2003-10-27 04:21:15 +0000 | [diff] [blame] | 5 | #endif |
darin | ad4bde3 | 2002-05-06 23:40:45 +0000 | [diff] [blame] | 6 | |
darin | ad4bde3 | 2002-05-06 23:40:45 +0000 | [diff] [blame] | 7 | #include <ctype.h> |
| 8 | #include <float.h> |
darin | ad4bde3 | 2002-05-06 23:40:45 +0000 | [diff] [blame] | 9 | #include <locale.h> |
| 10 | #include <math.h> |
darin | ad4bde3 | 2002-05-06 23:40:45 +0000 | [diff] [blame] | 11 | #include <stdio.h> |
| 12 | #include <stdlib.h> |
| 13 | #include <string.h> |
| 14 | #include <strings.h> |
| 15 | #include <time.h> |
darin | ad4bde3 | 2002-05-06 23:40:45 +0000 | [diff] [blame] | 16 | #include <sys/param.h> |
| 17 | #include <sys/time.h> |
| 18 | #include <sys/timeb.h> |
mjs | 21dbd39 | 2002-12-04 21:57:20 +0000 | [diff] [blame] | 19 | #include <sys/types.h> |
| 20 | |
| 21 | #ifdef __cplusplus |
darin | ea0ffc4 | 2004-02-08 21:13:07 +0000 | [diff] [blame] | 22 | |
mjs | 21dbd39 | 2002-12-04 21:57:20 +0000 | [diff] [blame] | 23 | #include <list> |
| 24 | #include <typeinfo> |
darin | ea0ffc4 | 2004-02-08 21:13:07 +0000 | [diff] [blame] | 25 | |
mjs | 21dbd39 | 2002-12-04 21:57:20 +0000 | [diff] [blame] | 26 | #endif |
thatcher | f5a63e0 | 2006-02-13 19:34:53 +0000 | [diff] [blame] | 27 | |
darin@apple.com | 7f98487 | 2007-11-12 23:04:41 +0000 | [diff] [blame] | 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 | |
weinig | ab5f09e | 2006-07-29 23:15:25 +0000 | [diff] [blame] | 33 | /* Work around bug with C++ library that screws up Objective-C++ when exception support is disabled. */ |
thatcher | f5a63e0 | 2006-02-13 19:34:53 +0000 | [diff] [blame] | 34 | #undef try |
| 35 | #undef catch |
ossy@webkit.org | 3744186 | 2010-11-10 18:43:50 +0000 | [diff] [blame] | 36 | |