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.

165 lines
4.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-10 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. #ifndef __JUCE_STANDARDHEADER_JUCEHEADER__
  19. #define __JUCE_STANDARDHEADER_JUCEHEADER__
  20. //==============================================================================
  21. /** Current Juce version number.
  22. See also SystemStats::getJUCEVersion() for a string version.
  23. */
  24. #define JUCE_MAJOR_VERSION 1
  25. #define JUCE_MINOR_VERSION 52
  26. #define JUCE_BUILDNUMBER 78
  27. /** Current Juce version number.
  28. Bits 16 to 32 = major version.
  29. Bits 8 to 16 = minor version.
  30. Bits 0 to 8 = point release (not currently used).
  31. See also SystemStats::getJUCEVersion() for a string version.
  32. */
  33. #define JUCE_VERSION ((JUCE_MAJOR_VERSION << 16) + (JUCE_MINOR_VERSION << 8) + JUCE_BUILDNUMBER)
  34. //==============================================================================
  35. #include "juce_TargetPlatform.h" // (sets up the various JUCE_WINDOWS, JUCE_MAC, etc flags)
  36. #include "../../juce_Config.h"
  37. //==============================================================================
  38. #ifdef JUCE_NAMESPACE
  39. #define BEGIN_JUCE_NAMESPACE namespace JUCE_NAMESPACE {
  40. #define END_JUCE_NAMESPACE }
  41. #else
  42. #define BEGIN_JUCE_NAMESPACE
  43. #define END_JUCE_NAMESPACE
  44. #endif
  45. //==============================================================================
  46. #include "juce_PlatformDefs.h"
  47. // Now we'll include any OS headers we need.. (at this point we are outside the Juce namespace).
  48. #if JUCE_MSVC
  49. #if (defined(_MSC_VER) && (_MSC_VER <= 1200))
  50. #pragma warning (disable: 4284 4786) // (spurious VC6 warnings)
  51. #endif
  52. #pragma warning (push)
  53. #pragma warning (disable: 4514 4245 4100)
  54. #endif
  55. #include <cstdlib>
  56. #include <cstdarg>
  57. #include <climits>
  58. #include <limits>
  59. #include <cmath>
  60. #include <cwchar>
  61. #include <stdexcept>
  62. #include <typeinfo>
  63. #include <cstring>
  64. #include <cstdio>
  65. #include <iostream>
  66. #if JUCE_USE_INTRINSICS
  67. #include <intrin.h>
  68. #endif
  69. #if JUCE_MAC || JUCE_IOS
  70. #include <libkern/OSAtomic.h>
  71. #endif
  72. #if JUCE_LINUX
  73. #include <signal.h>
  74. #if __INTEL_COMPILER
  75. #if __ia64__
  76. #include <ia64intrin.h>
  77. #else
  78. #include <ia32intrin.h>
  79. #endif
  80. #endif
  81. #endif
  82. #if JUCE_MSVC && JUCE_DEBUG
  83. #include <crtdbg.h>
  84. #endif
  85. #if JUCE_MSVC
  86. #include <malloc.h>
  87. #pragma warning (pop)
  88. #if ! JUCE_PUBLIC_INCLUDES
  89. #pragma warning (4: 4511 4512 4100) // (enable some warnings that are turned off in VC8)
  90. #endif
  91. #endif
  92. //==============================================================================
  93. // DLL building settings on Win32
  94. #if JUCE_MSVC
  95. #ifdef JUCE_DLL_BUILD
  96. #define JUCE_API __declspec (dllexport)
  97. #pragma warning (disable: 4251)
  98. #elif defined (JUCE_DLL)
  99. #define JUCE_API __declspec (dllimport)
  100. #pragma warning (disable: 4251)
  101. #endif
  102. #elif defined (__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
  103. #ifdef JUCE_DLL_BUILD
  104. #define JUCE_API __attribute__ ((visibility("default")))
  105. #endif
  106. #endif
  107. #ifndef JUCE_API
  108. /** This macro is added to all juce public class declarations. */
  109. #define JUCE_API
  110. #endif
  111. /** This macro is added to all juce public function declarations. */
  112. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  113. //==============================================================================
  114. // Now include some basics that are needed by most of the Juce classes...
  115. BEGIN_JUCE_NAMESPACE
  116. extern bool JUCE_PUBLIC_FUNCTION juce_isRunningUnderDebugger();
  117. #if JUCE_LOG_ASSERTIONS
  118. extern void JUCE_API juce_LogAssertion (const char* filename, int lineNum) throw();
  119. #endif
  120. #include "juce_Memory.h"
  121. #include "juce_MathsFunctions.h"
  122. #include "juce_ByteOrder.h"
  123. #include "juce_Logger.h"
  124. END_JUCE_NAMESPACE
  125. #endif // __JUCE_STANDARDHEADER_JUCEHEADER__