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.

167 lines
4.6KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. The code included in this file is provided under the terms of the ISC license
  8. http://www.isc.org/downloads/software-support-policy/isc-license. Permission
  9. To use, copy, modify, and/or distribute this software for any purpose with or
  10. without fee is hereby granted provided that the above copyright notice and
  11. this permission notice appear in all copies.
  12. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  13. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  14. DISCLAIMED.
  15. ==============================================================================
  16. */
  17. #pragma once
  18. //==============================================================================
  19. /** Current JUCE version number.
  20. See also SystemStats::getJUCEVersion() for a string version.
  21. */
  22. #define JUCE_MAJOR_VERSION 7
  23. #define JUCE_MINOR_VERSION 0
  24. #define JUCE_BUILDNUMBER 1
  25. /** Current JUCE version number.
  26. Bits 16 to 32 = major version.
  27. Bits 8 to 16 = minor version.
  28. Bits 0 to 8 = point release.
  29. See also SystemStats::getJUCEVersion() for a string version.
  30. */
  31. #define JUCE_VERSION ((JUCE_MAJOR_VERSION << 16) + (JUCE_MINOR_VERSION << 8) + JUCE_BUILDNUMBER)
  32. #if ! DOXYGEN
  33. #define JUCE_VERSION_ID \
  34. volatile auto juceVersionId = "juce_version_" JUCE_STRINGIFY(JUCE_MAJOR_VERSION) "_" JUCE_STRINGIFY(JUCE_MINOR_VERSION) "_" JUCE_STRINGIFY(JUCE_BUILDNUMBER); \
  35. ignoreUnused (juceVersionId);
  36. #endif
  37. //==============================================================================
  38. #include <algorithm>
  39. #include <array>
  40. #include <atomic>
  41. #include <cmath>
  42. #include <condition_variable>
  43. #include <cstddef>
  44. #include <functional>
  45. #include <iomanip>
  46. #include <iostream>
  47. #include <limits>
  48. #include <list>
  49. #include <map>
  50. #include <memory>
  51. #include <mutex>
  52. #include <numeric>
  53. #include <queue>
  54. #include <set>
  55. #include <sstream>
  56. #include <typeindex>
  57. #include <unordered_map>
  58. #include <unordered_set>
  59. #include <utility>
  60. #include <vector>
  61. #include <set>
  62. //==============================================================================
  63. #include "juce_CompilerSupport.h"
  64. #include "juce_CompilerWarnings.h"
  65. #include "juce_PlatformDefs.h"
  66. //==============================================================================
  67. // Now we'll include some common OS headers..
  68. JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4514 4245 4100)
  69. #if JUCE_MSVC
  70. #include <intrin.h>
  71. #endif
  72. #if JUCE_MAC || JUCE_IOS
  73. #include <libkern/OSAtomic.h>
  74. #include <xlocale.h>
  75. #include <signal.h>
  76. #endif
  77. #if JUCE_LINUX || JUCE_BSD
  78. #include <cstring>
  79. #include <signal.h>
  80. #if __INTEL_COMPILER
  81. #if __ia64__
  82. #include <ia64intrin.h>
  83. #else
  84. #include <ia32intrin.h>
  85. #endif
  86. #endif
  87. #endif
  88. #if JUCE_MSVC && JUCE_DEBUG
  89. #include <crtdbg.h>
  90. #endif
  91. JUCE_END_IGNORE_WARNINGS_MSVC
  92. #if JUCE_MINGW
  93. #include <cstring>
  94. #include <sys/types.h>
  95. #endif
  96. #if JUCE_ANDROID
  97. #include <cstring>
  98. #include <byteswap.h>
  99. #endif
  100. // undef symbols that are sometimes set by misguided 3rd-party headers..
  101. #undef TYPE_BOOL
  102. #undef max
  103. #undef min
  104. #undef major
  105. #undef minor
  106. #undef KeyPress
  107. //==============================================================================
  108. // DLL building settings on Windows
  109. #if JUCE_MSVC
  110. #ifdef JUCE_DLL_BUILD
  111. #define JUCE_API __declspec (dllexport)
  112. #pragma warning (disable: 4251)
  113. #elif defined (JUCE_DLL)
  114. #define JUCE_API __declspec (dllimport)
  115. #pragma warning (disable: 4251)
  116. #endif
  117. #ifdef __INTEL_COMPILER
  118. #pragma warning (disable: 1125) // (virtual override warning)
  119. #endif
  120. #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
  121. #define JUCE_API __attribute__ ((visibility("default")))
  122. #endif
  123. //==============================================================================
  124. #ifndef JUCE_API
  125. #define JUCE_API /**< This macro is added to all JUCE public class declarations. */
  126. #endif
  127. #if JUCE_MSVC && JUCE_DLL_BUILD
  128. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
  129. #else
  130. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
  131. #endif
  132. /** This macro is added to all JUCE public function declarations. */
  133. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  134. #ifndef DOXYGEN
  135. #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
  136. #endif