JavaScriptCorePrefix.h 792 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifdef __cplusplus
  2. #define NULL __null
  3. #else
  4. #define NULL ((void *)0)
  5. #endif
  6. #include <ctype.h>
  7. #include <float.h>
  8. #include <locale.h>
  9. #include <math.h>
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include <string.h>
  13. #include <strings.h>
  14. #include <time.h>
  15. #include <sys/param.h>
  16. #include <sys/time.h>
  17. #include <sys/timeb.h>
  18. #include <sys/types.h>
  19. #ifdef __cplusplus
  20. #include <list>
  21. #include <typeinfo>
  22. #endif
  23. #ifdef __cplusplus
  24. #define new ("if you use new/delete make sure to include config.h at the top of the file"())
  25. #define delete ("if you use new/delete make sure to include config.h at the top of the file"())
  26. #endif
  27. /* Work around bug with C++ library that screws up Objective-C++ when exception support is disabled. */
  28. #undef try
  29. #undef catch