The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #if JUCE_WINDOWS
  18. #undef _WIN32_WINNT
  19. #define _WIN32_WINNT 0x500
  20. #undef STRICT
  21. #define STRICT 1
  22. #include <windows.h>
  23. #include <float.h>
  24. #pragma warning (disable : 4312 4355)
  25. #ifdef __INTEL_COMPILER
  26. #pragma warning (disable : 1899)
  27. #endif
  28. #elif JUCE_LINUX
  29. #include <float.h>
  30. #include <sys/time.h>
  31. #include <X11/Xlib.h>
  32. #include <X11/Xutil.h>
  33. #include <X11/Xatom.h>
  34. #undef Font
  35. #undef KeyPress
  36. #undef Drawable
  37. #undef Time
  38. #else
  39. #if ! (defined (JUCE_SUPPORT_CARBON) || defined (__LP64__))
  40. #define JUCE_SUPPORT_CARBON 1
  41. #endif
  42. #if JUCE_SUPPORT_CARBON
  43. #define Point CarbonDummyPointName
  44. #define Component CarbonDummyCompName
  45. #include <Cocoa/Cocoa.h>
  46. #include <Carbon/Carbon.h>
  47. #undef Point
  48. #undef Component
  49. #else
  50. #include <Cocoa/Cocoa.h>
  51. #endif
  52. #include <objc/runtime.h>
  53. #include <objc/objc.h>
  54. #include <objc/message.h>
  55. #endif