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.

65 lines
1.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #if JUCE_WINDOWS
  19. #undef _WIN32_WINNT
  20. #define _WIN32_WINNT 0x500
  21. #undef STRICT
  22. #define STRICT 1
  23. #include <windows.h>
  24. #include <float.h>
  25. #pragma warning (disable : 4312 4355)
  26. #ifdef __INTEL_COMPILER
  27. #pragma warning (disable : 1899)
  28. #endif
  29. #elif JUCE_LINUX
  30. #include <float.h>
  31. #include <sys/time.h>
  32. #include <X11/Xlib.h>
  33. #include <X11/Xutil.h>
  34. #include <X11/Xatom.h>
  35. #undef Font
  36. #undef KeyPress
  37. #undef Drawable
  38. #undef Time
  39. #else
  40. #ifndef JUCE_SUPPORT_CARBON
  41. #define JUCE_SUPPORT_CARBON 1
  42. #endif
  43. #if JUCE_SUPPORT_CARBON
  44. #define Point CarbonDummyPointName
  45. #define Component CarbonDummyCompName
  46. #include <Cocoa/Cocoa.h>
  47. #include <Carbon/Carbon.h>
  48. #undef Point
  49. #undef Component
  50. #else
  51. #include <Cocoa/Cocoa.h>
  52. #endif
  53. #endif