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.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2016 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of the ISC license
  6. http://www.isc.org/downloads/software-support-policy/isc-license/
  7. Permission to use, copy, modify, and/or distribute this software for any
  8. purpose with or without fee is hereby granted, provided that the above
  9. copyright notice and this permission notice appear in all copies.
  10. THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD
  11. TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  12. FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
  13. OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  14. USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  16. OF THIS SOFTWARE.
  17. -----------------------------------------------------------------------------
  18. To release a closed-source product which uses other parts of JUCE not
  19. licensed under the ISC terms, commercial licenses are available: visit
  20. www.juce.com for more information.
  21. ==============================================================================
  22. */
  23. #ifndef JUCE_STANDARDHEADER_H_INCLUDED
  24. #define JUCE_STANDARDHEADER_H_INCLUDED
  25. //==============================================================================
  26. /** Current JUCE version number.
  27. See also SystemStats::getJUCEVersion() for a string version.
  28. */
  29. #define JUCE_MAJOR_VERSION 4
  30. #define JUCE_MINOR_VERSION 3
  31. #define JUCE_BUILDNUMBER 1
  32. /** Current Juce version number.
  33. Bits 16 to 32 = major version.
  34. Bits 8 to 16 = minor version.
  35. Bits 0 to 8 = point release.
  36. See also SystemStats::getJUCEVersion() for a string version.
  37. */
  38. #define JUCE_VERSION ((JUCE_MAJOR_VERSION << 16) + (JUCE_MINOR_VERSION << 8) + JUCE_BUILDNUMBER)
  39. //==============================================================================
  40. #include <memory>
  41. #include <cmath>
  42. #include <vector>
  43. #include <iostream>
  44. #include <functional>
  45. #include <algorithm>
  46. #include <limits>
  47. //==============================================================================
  48. #include "juce_CompilerSupport.h"
  49. #include "juce_PlatformDefs.h"
  50. //==============================================================================
  51. // Now we'll include some common OS headers..
  52. #if JUCE_MSVC
  53. #pragma warning (push)
  54. #pragma warning (disable: 4514 4245 4100)
  55. #include <intrin.h>
  56. #endif
  57. #if JUCE_MAC || JUCE_IOS
  58. #include <libkern/OSAtomic.h>
  59. #endif
  60. #if JUCE_LINUX
  61. #include <cstring>
  62. #include <signal.h>
  63. #if __INTEL_COMPILER
  64. #if __ia64__
  65. #include <ia64intrin.h>
  66. #else
  67. #include <ia32intrin.h>
  68. #endif
  69. #endif
  70. #endif
  71. #if JUCE_MSVC && JUCE_DEBUG
  72. #include <crtdbg.h>
  73. #endif
  74. #if JUCE_MSVC
  75. #pragma warning (pop)
  76. #endif
  77. #if JUCE_MINGW
  78. #include <cstring>
  79. #include <sys/types.h>
  80. #endif
  81. #if JUCE_ANDROID
  82. #include <cstring>
  83. #include <atomic>
  84. #include <byteswap.h>
  85. #endif
  86. // undef symbols that are sometimes set by misguided 3rd-party headers..
  87. #undef TYPE_BOOL
  88. #undef max
  89. #undef min
  90. #undef major
  91. #undef minor
  92. #undef KeyPress
  93. //==============================================================================
  94. // DLL building settings on Windows
  95. #if JUCE_MSVC
  96. #ifdef JUCE_DLL_BUILD
  97. #define JUCE_API __declspec (dllexport)
  98. #pragma warning (disable: 4251)
  99. #elif defined (JUCE_DLL)
  100. #define JUCE_API __declspec (dllimport)
  101. #pragma warning (disable: 4251)
  102. #endif
  103. #ifdef __INTEL_COMPILER
  104. #pragma warning (disable: 1125) // (virtual override warning)
  105. #endif
  106. #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
  107. #define JUCE_API __attribute__ ((visibility("default")))
  108. #endif
  109. //==============================================================================
  110. #ifndef JUCE_API
  111. #define JUCE_API /**< This macro is added to all juce public class declarations. */
  112. #endif
  113. #if JUCE_MSVC && JUCE_DLL_BUILD
  114. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
  115. #else
  116. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
  117. #endif
  118. /** This macro is added to all juce public function declarations. */
  119. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  120. #if (! defined (JUCE_CATCH_DEPRECATED_CODE_MISUSE)) && JUCE_DEBUG && ! DOXYGEN
  121. /** This turns on some non-essential bits of code that should prevent old code from compiling
  122. in cases where method signatures have changed, etc.
  123. */
  124. #define JUCE_CATCH_DEPRECATED_CODE_MISUSE 1
  125. #endif
  126. #ifndef DOXYGEN
  127. #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
  128. #endif
  129. #endif // JUCE_STANDARDHEADER_H_INCLUDED