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.

162 lines
4.4KB

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