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.

73 lines
1.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #if JUCE_WINDOWS
  20. #undef _WIN32_WINNT
  21. #define _WIN32_WINNT 0x500
  22. #undef STRICT
  23. #define STRICT 1
  24. #include <windows.h>
  25. #include <float.h>
  26. #pragma warning (disable : 4312 4355)
  27. #ifdef __INTEL_COMPILER
  28. #pragma warning (disable : 1899)
  29. #endif
  30. #elif JUCE_LINUX
  31. #include <float.h>
  32. #include <sys/time.h>
  33. #include <X11/Xlib.h>
  34. #include <X11/Xutil.h>
  35. #include <X11/Xatom.h>
  36. #undef Font
  37. #undef KeyPress
  38. #undef Drawable
  39. #undef Time
  40. #elif JUCE_ANDROID
  41. #else
  42. #if ! (defined (JUCE_SUPPORT_CARBON) || defined (__LP64__))
  43. #define JUCE_SUPPORT_CARBON 1
  44. #endif
  45. #ifdef __OBJC__
  46. #if JUCE_MAC
  47. #include <Cocoa/Cocoa.h>
  48. #elif JUCE_IOS
  49. #include <UIKit/UIKit.h>
  50. #else
  51. #error
  52. #endif
  53. #endif
  54. #if JUCE_SUPPORT_CARBON && (! JUCE_IOS)
  55. #include <Carbon/Carbon.h>
  56. #endif
  57. #include <objc/runtime.h>
  58. #include <objc/objc.h>
  59. #include <objc/message.h>
  60. #endif