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.

58 lines
1.4KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2020 - Raw Material Software Limited
  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. #elif JUCE_MAC || JUCE_IOS
  30. #if ! (defined (JUCE_SUPPORT_CARBON) || defined (__LP64__))
  31. #define JUCE_SUPPORT_CARBON 1
  32. #endif
  33. #ifdef __OBJC__
  34. #if JUCE_MAC
  35. #include <Cocoa/Cocoa.h>
  36. #elif JUCE_IOS
  37. #include <UIKit/UIKit.h>
  38. #else
  39. #error
  40. #endif
  41. #endif
  42. #if JUCE_SUPPORT_CARBON && (! JUCE_IOS)
  43. #include <Carbon/Carbon.h>
  44. #endif
  45. #include <objc/runtime.h>
  46. #include <objc/objc.h>
  47. #include <objc/message.h>
  48. #endif