prefix.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright (C) 2004, 2005, 2006, 2007, 2013 Apple Inc.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public License
  15. * along with this library; see the file COPYING.LIB. If not, write to
  16. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17. * Boston, MA 02110-1301, USA.
  18. *
  19. */
  20. /* This prefix file is for use on Mac OS X only. This prefix file should contain
  21. * only files to precompile for faster builds. The project should be able to
  22. * build without this header, although we rarely test that.
  23. */
  24. #ifdef THIRD_PARTY_BLINK_RENDERER_BUILD_MAC_PREFIX_H_
  25. #error You shouldn't include the precompiled header file more than once.
  26. #endif
  27. #define THIRD_PARTY_BLINK_RENDERER_BUILD_MAC_PREFIX_H_
  28. #include <pthread.h>
  29. #include <sys/types.h>
  30. #include <fcntl.h>
  31. #include <regex.h>
  32. #include <setjmp.h>
  33. #include <signal.h>
  34. #include <stdarg.h>
  35. #include <stddef.h>
  36. #include <stdio.h>
  37. #include <stdlib.h>
  38. #include <string.h>
  39. #include <time.h>
  40. #include <unistd.h>
  41. #ifdef __cplusplus
  42. #include <algorithm>
  43. #include <cstddef>
  44. #include <new>
  45. #endif // __cplusplus
  46. #include <sys/param.h>
  47. #include <sys/stat.h>
  48. #include <sys/time.h>
  49. #include <sys/resource.h>
  50. #include <CoreFoundation/CoreFoundation.h>
  51. #ifdef __OBJC__
  52. #import <Cocoa/Cocoa.h>
  53. /* When C++ exceptions are disabled, the C++ library defines |try| and |catch|
  54. * to allow C++ code that expects exceptions to build. These definitions
  55. * interfere with Objective-C++ uses of Objective-C exception handlers, which
  56. * use |@try| and |@catch|. As a workaround, undefine these macros. */
  57. #undef try
  58. #undef catch
  59. #endif