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.

83 lines
2.6KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-7 by Raw Material Software ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the
  7. GNU General Public License, as published by the Free Software Foundation;
  8. either version 2 of the License, or (at your option) any later version.
  9. JUCE is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with JUCE; if not, visit www.gnu.org/licenses or write to the
  15. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  16. Boston, MA 02111-1307 USA
  17. ------------------------------------------------------------------------------
  18. If you'd like to release a closed-source product which uses JUCE, commercial
  19. licenses are also available: visit www.rawmaterialsoftware.com/juce for
  20. more information.
  21. ==============================================================================
  22. */
  23. #ifndef __WIN32_HEADERS_JUCEHEADER__
  24. #define __WIN32_HEADERS_JUCEHEADER__
  25. #include "../../../juce_Config.h"
  26. #define STRICT
  27. #define WIN32_LEAN_AND_MEAN
  28. // don't want to get told about microsoft's mistakes..
  29. #ifdef _MSC_VER
  30. #pragma warning (push)
  31. #pragma warning (disable : 4100 4201)
  32. #endif
  33. // use Platform SDK as win2000 unless this is disabled
  34. #ifndef DISABLE_TRANSPARENT_WINDOWS
  35. #define _WIN32_WINNT 0x0500
  36. #endif
  37. #include <windows.h>
  38. #include <commdlg.h>
  39. #include <shellapi.h>
  40. #include <mmsystem.h>
  41. #include <vfw.h>
  42. #include <tchar.h>
  43. #undef PACKED
  44. #ifdef _MSC_VER
  45. #pragma warning (pop)
  46. #endif
  47. //==============================================================================
  48. #ifndef JUCE_ENABLE_WIN98_COMPATIBILITY
  49. #define JUCE_ENABLE_WIN98_COMPATIBILITY 1
  50. #endif
  51. // helpers for dynamically loading unicode functions..
  52. #if JUCE_ENABLE_WIN98_COMPATIBILITY
  53. #define UNICODE_FUNCTION(functionName, returnType, params) \
  54. typedef returnType (WINAPI *type##functionName) params; \
  55. static type##functionName w##functionName = 0;
  56. #define UNICODE_FUNCTION_LOAD(functionName) \
  57. w##functionName = (type##functionName) GetProcAddress (h, #functionName); \
  58. jassert (w##functionName != 0);
  59. #endif
  60. #endif // __WIN32_HEADERS_JUCEHEADER__