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.

160 lines
4.3KB

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