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.

171 lines
4.7KB

  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 9
  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. [[maybe_unused]] volatile auto juceVersionId = "juce_version_" JUCE_STRINGIFY(JUCE_MAJOR_VERSION) "_" JUCE_STRINGIFY(JUCE_MINOR_VERSION) "_" JUCE_STRINGIFY(JUCE_BUILDNUMBER);
  35. #endif
  36. //==============================================================================
  37. #include <algorithm>
  38. #include <array>
  39. #include <atomic>
  40. #include <cmath>
  41. #include <condition_variable>
  42. #include <cstddef>
  43. #include <functional>
  44. #include <future>
  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 <optional>
  54. #include <queue>
  55. #include <set>
  56. #include <sstream>
  57. #include <string_view>
  58. #include <thread>
  59. #include <typeindex>
  60. #include <unordered_map>
  61. #include <unordered_set>
  62. #include <utility>
  63. #include <variant>
  64. #include <vector>
  65. //==============================================================================
  66. #include "juce_CompilerSupport.h"
  67. #include "juce_CompilerWarnings.h"
  68. #include "juce_PlatformDefs.h"
  69. //==============================================================================
  70. // Now we'll include some common OS headers..
  71. JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4514 4245 4100)
  72. #if JUCE_MSVC
  73. #include <intrin.h>
  74. #endif
  75. #if JUCE_MAC || JUCE_IOS
  76. #include <libkern/OSAtomic.h>
  77. #include <libkern/OSByteOrder.h>
  78. #include <xlocale.h>
  79. #include <signal.h>
  80. #endif
  81. #if JUCE_LINUX || JUCE_BSD
  82. #include <cstring>
  83. #include <signal.h>
  84. #if __INTEL_COMPILER
  85. #if __ia64__
  86. #include <ia64intrin.h>
  87. #else
  88. #include <ia32intrin.h>
  89. #endif
  90. #endif
  91. #endif
  92. #if JUCE_MSVC && JUCE_DEBUG
  93. #include <crtdbg.h>
  94. #endif
  95. JUCE_END_IGNORE_WARNINGS_MSVC
  96. #if JUCE_MINGW
  97. #include <cstring>
  98. #include <sys/types.h>
  99. #endif
  100. #if JUCE_ANDROID
  101. #include <cstring>
  102. #include <byteswap.h>
  103. #endif
  104. // undef symbols that are sometimes set by misguided 3rd-party headers..
  105. #undef TYPE_BOOL
  106. #undef max
  107. #undef min
  108. #undef major
  109. #undef minor
  110. #undef KeyPress
  111. //==============================================================================
  112. // DLL building settings on Windows
  113. #if JUCE_MSVC
  114. #ifdef JUCE_DLL_BUILD
  115. #define JUCE_API __declspec (dllexport)
  116. #pragma warning (disable: 4251)
  117. #elif defined (JUCE_DLL)
  118. #define JUCE_API __declspec (dllimport)
  119. #pragma warning (disable: 4251)
  120. #endif
  121. #ifdef __INTEL_COMPILER
  122. #pragma warning (disable: 1125) // (virtual override warning)
  123. #endif
  124. #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
  125. #define JUCE_API __attribute__ ((visibility ("default")))
  126. #endif
  127. //==============================================================================
  128. #ifndef JUCE_API
  129. #define JUCE_API /**< This macro is added to all JUCE public class declarations. */
  130. #endif
  131. #if JUCE_MSVC && JUCE_DLL_BUILD
  132. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
  133. #else
  134. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
  135. #endif
  136. /** This macro is added to all JUCE public function declarations. */
  137. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  138. #ifndef DOXYGEN
  139. #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
  140. #endif