Path: blob/main/system/include/SDL/SDL_config_nintendods.h
6171 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_nintendods_h22#define _SDL_config_nintendods_h2324#include "SDL_platform.h"2526/* This is a set of defines to configure the SDL features */2728#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)29typedef signed char int8_t;30typedef unsigned char uint8_t;31typedef signed short int16_t;32typedef unsigned short uint16_t;33typedef signed int int32_t;34typedef unsigned int uint32_t;35typedef signed long long int64_t;36typedef unsigned long long uint64_t;3738/* LiF: __PTRDIFF_TYPE__ was causing errors of conflicting typedefs with the39<stdint.h> shipping with devkitARM. copied a similar ifdef from it. */40#ifndef __PTRDIFF_TYPE__41typedef unsigned long uintptr_t;42#else43typedef unsigned __PTRDIFF_TYPE__ uintptr_t;44#endif45#endif /* !_STDINT_H_ && !HAVE_STDINT_H */4647#define SIZEOF_VOIDP 44849/* Useful headers */50#define HAVE_SYS_TYPES_H 151#define HAVE_STDIO_H 152#define STDC_HEADERS 153#define HAVE_STRING_H 154#define HAVE_CTYPE_H 15556/* C library functions */57#define HAVE_MALLOC 158#define HAVE_CALLOC 159#define HAVE_REALLOC 160#define HAVE_FREE 161#define HAVE_ALLOCA 162#define HAVE_GETENV 163#define HAVE_SETENV 164#define HAVE_PUTENV 165#define HAVE_QSORT 166#define HAVE_ABS 167#define HAVE_BCOPY 168#define HAVE_MEMSET 169#define HAVE_MEMCPY 170#define HAVE_MEMMOVE 171#define HAVE_MEMCMP 172#define HAVE_STRLEN 173#define HAVE_STRDUP 174#define HAVE_INDEX 175#define HAVE_RINDEX 176#define HAVE_STRCHR 177#define HAVE_STRRCHR 178#define HAVE_STRSTR 179#define HAVE_STRTOL 180#define HAVE_STRTOD 181#define HAVE_ATOI 182#define HAVE_ATOF 183#define HAVE_STRCMP 184#define HAVE_STRNCMP 185#define HAVE_STRICMP 186#define HAVE_STRCASECMP 187#define HAVE_SSCANF 188#define HAVE_SNPRINTF 189#define HAVE_VSNPRINTF 19091/* DS isn't that sophisticated */92#define LACKS_SYS_MMAN_H 19394/* Enable various audio drivers */95#define SDL_AUDIO_DRIVER_NDS 196/*#define SDL_AUDIO_DRIVER_DUMMY 1 TODO: uncomment this later*/9798/* Enable various input drivers */99#define SDL_JOYSTICK_NDS 1100/*#define SDL_JOYSTICK_DUMMY 1 TODO: uncomment this later*/101102/* DS has no dynamic linking afaik */103#define SDL_LOADSO_DISABLED 1104105/* Enable various threading systems */106/*#define SDL_THREAD_NDS 1*/107#define SDL_THREADS_DISABLED 1108109/* Enable various timer systems */110#define SDL_TIMER_NDS 1111112/* Enable various video drivers */113#define SDL_VIDEO_DRIVER_NDS 1114#ifdef USE_HW_RENDERER115#define SDL_VIDEO_RENDER_NDS 1116#else117#define SDL_VIDEO_RENDER_NDS 0118#endif119120/* Enable system power support */121#define SDL_POWER_NINTENDODS 1122123/* Enable haptic support */124#define SDL_HAPTIC_NDS 1125126#define SDL_BYTEORDER SDL_LIL_ENDIAN127128#endif /* _SDL_config_nintendods_h */129130131