Path: blob/main/system/include/SDL/SDL_config_macosx.h
6169 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2011 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021#ifndef _SDL_config_macosx_h22#define _SDL_config_macosx_h2324#include "SDL_platform.h"2526/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */27#include <AvailabilityMacros.h>2829/* This is a set of defines to configure the SDL features */3031#ifdef __LP64__32#define SIZEOF_VOIDP 833#else34#define SIZEOF_VOIDP 435#endif3637/* Useful headers */38/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */39#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) )40#define HAVE_ALLOCA_H 141#endif42#define HAVE_SYS_TYPES_H 143#define HAVE_STDIO_H 144#define STDC_HEADERS 145#define HAVE_STRING_H 146#define HAVE_INTTYPES_H 147#define HAVE_STDINT_H 148#define HAVE_CTYPE_H 149#define HAVE_MATH_H 150#define HAVE_SIGNAL_H 15152/* C library functions */53#define HAVE_MALLOC 154#define HAVE_CALLOC 155#define HAVE_REALLOC 156#define HAVE_FREE 157#define HAVE_ALLOCA 158#define HAVE_GETENV 159#define HAVE_SETENV 160#define HAVE_PUTENV 161#define HAVE_UNSETENV 162#define HAVE_QSORT 163#define HAVE_ABS 164#define HAVE_BCOPY 165#define HAVE_MEMSET 166#define HAVE_MEMCPY 167#define HAVE_MEMMOVE 168#define HAVE_MEMCMP 169#define HAVE_STRLEN 170#define HAVE_STRLCPY 171#define HAVE_STRLCAT 172#define HAVE_STRDUP 173#define HAVE_STRCHR 174#define HAVE_STRRCHR 175#define HAVE_STRSTR 176#define HAVE_STRTOL 177#define HAVE_STRTOUL 178#define HAVE_STRTOLL 179#define HAVE_STRTOULL 180#define HAVE_STRTOD 181#define HAVE_ATOI 182#define HAVE_ATOF 183#define HAVE_STRCMP 184#define HAVE_STRNCMP 185#define HAVE_STRCASECMP 186#define HAVE_STRNCASECMP 187#define HAVE_SSCANF 188#define HAVE_SNPRINTF 189#define HAVE_VSNPRINTF 190#define HAVE_CEIL 191#define HAVE_COPYSIGN 192#define HAVE_COS 193#define HAVE_COSF 194#define HAVE_FABS 195#define HAVE_FLOOR 196#define HAVE_LOG 197#define HAVE_POW 198#define HAVE_SCALBN 199#define HAVE_SIN 1100#define HAVE_SINF 1101#define HAVE_SQRT 1102#define HAVE_SIGACTION 1103#define HAVE_SETJMP 1104#define HAVE_NANOSLEEP 1105#define HAVE_SYSCONF 1106#define HAVE_SYSCTLBYNAME 1107#define HAVE_ATAN 1108#define HAVE_ATAN2 1109110/* Enable various audio drivers */111#define SDL_AUDIO_DRIVER_COREAUDIO 1112#define SDL_AUDIO_DRIVER_DISK 1113#define SDL_AUDIO_DRIVER_DUMMY 1114115/* Enable various input drivers */116#define SDL_JOYSTICK_IOKIT 1117#define SDL_HAPTIC_IOKIT 1118119/* Enable various shared object loading systems */120#define SDL_LOADSO_DLOPEN 1121122/* Enable various threading systems */123#define SDL_THREAD_PTHREAD 1124#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1125126/* Enable various timer systems */127#define SDL_TIMER_UNIX 1128129/* Enable various video drivers */130#define SDL_VIDEO_DRIVER_COCOA 1131#define SDL_VIDEO_DRIVER_DUMMY 1132#define SDL_VIDEO_DRIVER_X11 1133#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"134#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"135#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"136#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT "/usr/X11R6/lib/libXi.6.dylib"137#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"138#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"139#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"140#define SDL_VIDEO_DRIVER_X11_XINERAMA 1141#define SDL_VIDEO_DRIVER_X11_XINPUT 1142#define SDL_VIDEO_DRIVER_X11_XRANDR 1143#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1144#define SDL_VIDEO_DRIVER_X11_XSHAPE 1145#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1146147#ifndef SDL_VIDEO_RENDER_OGL148#define SDL_VIDEO_RENDER_OGL 1149#endif150151/* Enable OpenGL support */152#ifndef SDL_VIDEO_OPENGL153#define SDL_VIDEO_OPENGL 1154#endif155#ifndef SDL_VIDEO_OPENGL_CGL156#define SDL_VIDEO_OPENGL_CGL 1157#endif158#ifndef SDL_VIDEO_OPENGL_GLX159#define SDL_VIDEO_OPENGL_GLX 1160#endif161162/* Enable system power support */163#define SDL_POWER_MACOSX 1164165/* Enable assembly routines */166#define SDL_ASSEMBLY_ROUTINES 1167#ifdef __ppc__168#define SDL_ALTIVEC_BLITTERS 1169#endif170171#endif /* _SDL_config_macosx_h */172173174