Loading...
Searching...
No Matches
Go to the documentation of this file.
28#if JUCE_MAC || JUCE_IOS
31 #if JUCE_MODULE_AVAILABLE_juce_opengl && defined (__IPHONE_12_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_12_0
32 #define GLES_SILENCE_DEPRECATION 1
35 #import <Foundation/Foundation.h>
36 #import <UIKit/UIKit.h>
37 #import <CoreData/CoreData.h>
38 #import <MobileCoreServices/MobileCoreServices.h>
39 #include <sys/fcntl.h>
41 #if JUCE_MODULE_AVAILABLE_juce_opengl && defined (MAC_OS_X_VERSION_10_14) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14
42 #define GL_SILENCE_DEPRECATION 1
45 #import <Cocoa/Cocoa.h>
46 #if (! defined MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
47 #define NSEventModifierFlagCommand NSCommandKeyMask
48 #define NSEventModifierFlagControl NSControlKeyMask
49 #define NSEventModifierFlagHelp NSHelpKeyMask
50 #define NSEventModifierFlagNumericPad NSNumericPadKeyMask
51 #define NSEventModifierFlagOption NSAlternateKeyMask
52 #define NSEventModifierFlagShift NSShiftKeyMask
53 #define NSCompositingOperationSourceOver NSCompositeSourceOver
54 #define NSEventMaskApplicationDefined NSApplicationDefinedMask
55 #define NSEventTypeApplicationDefined NSApplicationDefined
56 #define NSEventTypeCursorUpdate NSCursorUpdate
57 #define NSEventTypeMouseMoved NSMouseMoved
58 #define NSEventTypeLeftMouseDown NSLeftMouseDown
59 #define NSEventTypeRightMouseDown NSRightMouseDown
60 #define NSEventTypeOtherMouseDown NSOtherMouseDown
61 #define NSEventTypeLeftMouseUp NSLeftMouseUp
62 #define NSEventTypeRightMouseUp NSRightMouseUp
63 #define NSEventTypeOtherMouseUp NSOtherMouseUp
64 #define NSEventTypeLeftMouseDragged NSLeftMouseDragged
65 #define NSEventTypeRightMouseDragged NSRightMouseDragged
66 #define NSEventTypeOtherMouseDragged NSOtherMouseDragged
67 #define NSEventTypeScrollWheel NSScrollWheel
68 #define NSEventTypeKeyDown NSKeyDown
69 #define NSEventTypeKeyUp NSKeyUp
70 #define NSEventTypeFlagsChanged NSFlagsChanged
71 #define NSEventMaskAny NSAnyEventMask
72 #define NSWindowStyleMaskBorderless NSBorderlessWindowMask
73 #define NSWindowStyleMaskClosable NSClosableWindowMask
74 #define NSWindowStyleMaskFullScreen NSFullScreenWindowMask
75 #define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask
76 #define NSWindowStyleMaskResizable NSResizableWindowMask
77 #define NSWindowStyleMaskTitled NSTitledWindowMask
78 #define NSAlertStyleCritical NSCriticalAlertStyle
79 #define NSControlSizeRegular NSRegularControlSize
80 #define NSEventTypeMouseEntered NSMouseEntered
81 #define NSEventTypeMouseExited NSMouseExited
82 #define NSAlertStyleInformational NSInformationalAlertStyle
83 #define NSEventTypeTabletPoint NSTabletPoint
84 #define NSEventTypeTabletProximity NSTabletProximity
85 #define NSEventTypeFlagsChanged NSFlagsChanged
86 #define NSEventTypeAppKitDefined NSAppKitDefined
87 #define NSEventTypeSystemDefined NSSystemDefined
88 #define NSEventTypeApplicationDefined NSApplicationDefined
89 #define NSEventTypePeriodic NSPeriodic
90 #define NSEventTypeSmartMagnify NSEventTypeSmartMagnify
92 #import <CoreAudio/HostTime.h>
96 #include <sys/socket.h>
97 #include <sys/sysctl.h>
99 #include <sys/param.h>
100 #include <sys/mount.h>
101 #include <sys/utsname.h>
102 #include <sys/mman.h>
107 #include <net/if_dl.h>
108 #include <mach/mach_time.h>
109 #include <mach-o/dyld.h>
110 #include <objc/runtime.h>
111 #include <objc/objc.h>
112 #include <objc/message.h>
119 #error "You're compiling without RTTI enabled! This is needed for a lot of JUCE classes, please update your compiler settings!"
123 #error "You're compiling without exceptions enabled! This is needed for a lot of JUCE classes, please update your compiler settings!"
126 #pragma warning (push, 0)
131 #define _WINSOCK_DEPRECATED_NO_WARNINGS 1
133 #define WIN32_LEAN_AND_MEAN 1
135 #if ! defined (_WIN32_WINNT)
136 #define _WIN32_WINNT 0x0600
139 #define _WIN32_WINNT 0x0602
144 #define _WIN32_IE 0x0501
148 #include <shellapi.h>
154 #include <winsock2.h>
155 #include <ws2tcpip.h>
156 #include <iphlpapi.h>
160 #if ! JUCE_CXX17_IS_AVAILABLE
161 #pragma push_macro ("WIN_NOEXCEPT")
167 #if ! JUCE_CXX17_IS_AVAILABLE
168 #pragma pop_macro ("WIN_NOEXCEPT")
175 #include <mmsystem.h>
176 #include <winioctl.h>
179 #include <basetyps.h>
180 #include <sys/time.h>
182 #define alloca __builtin_alloca
196 #pragma warning (pop)
197 #pragma warning (4: 4511 4512 4100)
200 #if ! JUCE_MINGW && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
201 #pragma comment (lib, "kernel32.lib")
202 #pragma comment (lib, "user32.lib")
203 #pragma comment (lib, "wininet.lib")
204 #pragma comment (lib, "advapi32.lib")
205 #pragma comment (lib, "ws2_32.lib")
206 #pragma comment (lib, "version.lib")
207 #pragma comment (lib, "shlwapi.lib")
208 #pragma comment (lib, "winmm.lib")
210 #ifdef _NATIVE_WCHAR_T_DEFINED
212 #pragma comment (lib, "comsuppwd.lib")
214 #pragma comment (lib, "comsuppw.lib")
218 #pragma comment (lib, "comsuppd.lib")
220 #pragma comment (lib, "comsupp.lib")
233 #define JUCE_LOAD_WINAPI_FUNCTION(dll, functionName, localFunctionName, returnType, params) \
234 typedef returnType (WINAPI *type##localFunctionName) params; \
235 type##localFunctionName localFunctionName = (type##localFunctionName) dll.getFunction (#functionName);
239 #include <arpa/inet.h>
246 #include <netinet/in.h>
253 #include <sys/file.h>
254 #include <sys/ioctl.h>
255 #include <sys/mman.h>
256 #include <sys/prctl.h>
257 #include <sys/ptrace.h>
258 #include <sys/socket.h>
259 #include <sys/stat.h>
260 #include <sys/sysinfo.h>
261 #include <sys/time.h>
262 #include <sys/types.h>
264 #include <sys/wait.h>
270 #include <arpa/inet.h>
277 #include <langinfo.h>
279 #include <net/if_dl.h>
281 #include <netinet/in.h>
287 #include <sys/file.h>
288 #include <sys/ioctl.h>
289 #include <sys/mman.h>
290 #include <sys/mount.h>
291 #include <sys/ptrace.h>
292 #include <sys/socket.h>
293 #include <sys/stat.h>
294 #include <sys/sysctl.h>
295 #include <sys/time.h>
296 #include <sys/types.h>
297 #include <sys/user.h>
298 #include <sys/wait.h>
307 #include <sys/time.h>
312 #include <sys/stat.h>
313 #include <sys/statfs.h>
314 #include <sys/ptrace.h>
315 #include <sys/sysinfo.h>
316 #include <sys/mman.h>
320 #include <sys/wait.h>
321 #include <android/api-level.h>
326 #include <cpu-features.h>