openshot-audio  0.1.6
juce_StandardHeader.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the juce_core module of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission to use, copy, modify, and/or distribute this software for any purpose with
8  or without fee is hereby granted, provided that the above copyright notice and this
9  permission notice appear in all copies.
10 
11  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
12  TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
13  NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
15  IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 
18  ------------------------------------------------------------------------------
19 
20  NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
21  All other JUCE modules are covered by a dual GPL/commercial license, so if you are
22  using any other modules, be sure to check that you also comply with their license.
23 
24  For more details, visit www.juce.com
25 
26  ==============================================================================
27 */
28 
29 #ifndef JUCE_STANDARDHEADER_H_INCLUDED
30 #define JUCE_STANDARDHEADER_H_INCLUDED
31 
32 //==============================================================================
37 #define JUCE_MAJOR_VERSION 3
38 #define JUCE_MINOR_VERSION 2
39 #define JUCE_BUILDNUMBER 0
40 
49 #define JUCE_VERSION ((JUCE_MAJOR_VERSION << 16) + (JUCE_MINOR_VERSION << 8) + JUCE_BUILDNUMBER)
50 
51 
52 //==============================================================================
53 #include <vector> // included before platform defs to provide a definition of _LIBCPP_VERSION
54 
55 #include "juce_PlatformDefs.h"
56 #include "juce_CompilerSupport.h"
57 
58 //==============================================================================
59 // Now we'll include some common OS headers..
60 #if JUCE_MSVC
61  #pragma warning (push)
62  #pragma warning (disable: 4514 4245 4100)
63 #endif
64 
65 #include <cstdlib>
66 #include <cstdarg>
67 #include <climits>
68 #include <limits>
69 #include <cmath>
70 #include <cwchar>
71 #include <stdexcept>
72 #include <typeinfo>
73 #include <cstring>
74 #include <cstdio>
75 #include <iostream>
76 #include <algorithm>
77 #include <functional>
78 
79 #if JUCE_USE_MSVC_INTRINSICS
80  #include <intrin.h>
81 #endif
82 
83 #if JUCE_MAC || JUCE_IOS
84  #include <libkern/OSAtomic.h>
85 #endif
86 
87 #if JUCE_LINUX
88  #include <signal.h>
89 
90  #if __INTEL_COMPILER
91  #if __ia64__
92  #include <ia64intrin.h>
93  #else
94  #include <ia32intrin.h>
95  #endif
96  #endif
97 #endif
98 
99 #if JUCE_MSVC && JUCE_DEBUG
100  #include <crtdbg.h>
101 #endif
102 
103 #if JUCE_MSVC
104  #pragma warning (pop)
105 #endif
106 
107 #if JUCE_ANDROID
108  #include <atomic>
109  #include <byteswap.h>
110 #endif
111 
112 // undef symbols that are sometimes set by misguided 3rd-party headers..
113 #undef check
114 #undef TYPE_BOOL
115 #undef max
116 #undef min
117 #undef major
118 #undef minor
119 
120 //==============================================================================
121 // DLL building settings on Windows
122 #if JUCE_MSVC
123  #ifdef JUCE_DLL_BUILD
124  #define JUCE_API __declspec (dllexport)
125  #pragma warning (disable: 4251)
126  #elif defined (JUCE_DLL)
127  #define JUCE_API __declspec (dllimport)
128  #pragma warning (disable: 4251)
129  #endif
130  #ifdef __INTEL_COMPILER
131  #pragma warning (disable: 1125) // (virtual override warning)
132  #endif
133 #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
134  #define JUCE_API __attribute__ ((visibility("default")))
135 #endif
136 
137 //==============================================================================
138 #ifndef JUCE_API
139  #define JUCE_API
140 #endif
141 
142 #if JUCE_MSVC && JUCE_DLL_BUILD
143  #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
144 #else
145  #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
146 #endif
147 
149 #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
150 
151 #if (! defined (JUCE_CATCH_DEPRECATED_CODE_MISUSE)) && JUCE_DEBUG && ! DOXYGEN
152 
155  #define JUCE_CATCH_DEPRECATED_CODE_MISUSE 1
156 #endif
157 
158 #ifndef DOXYGEN
159  #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
160 #endif
161 
162 #endif // JUCE_STANDARDHEADER_H_INCLUDED