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.5KB

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