Counter Strike : Global Offensive Source Code
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.

129 lines
3.5 KiB

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #ifndef _SDL_config_nintendods_h
  19. #define _SDL_config_nintendods_h
  20. #include "SDL_platform.h"
  21. /* This is a set of defines to configure the SDL features */
  22. #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
  23. typedef signed char int8_t;
  24. typedef unsigned char uint8_t;
  25. typedef signed short int16_t;
  26. typedef unsigned short uint16_t;
  27. typedef signed int int32_t;
  28. typedef unsigned int uint32_t;
  29. typedef signed long long int64_t;
  30. typedef unsigned long long uint64_t;
  31. /* LiF: __PTRDIFF_TYPE__ was causing errors of conflicting typedefs with the
  32. <stdint.h> shipping with devkitARM. copied a similar ifdef from it. */
  33. #ifndef __PTRDIFF_TYPE__
  34. typedef unsigned long uintptr_t;
  35. #else
  36. typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
  37. #endif
  38. #endif /* !_STDINT_H_ && !HAVE_STDINT_H */
  39. #define SIZEOF_VOIDP 4
  40. /* Useful headers */
  41. #define HAVE_SYS_TYPES_H 1
  42. #define HAVE_STDIO_H 1
  43. #define STDC_HEADERS 1
  44. #define HAVE_STRING_H 1
  45. #define HAVE_CTYPE_H 1
  46. /* C library functions */
  47. #define HAVE_MALLOC 1
  48. #define HAVE_CALLOC 1
  49. #define HAVE_REALLOC 1
  50. #define HAVE_FREE 1
  51. #define HAVE_ALLOCA 1
  52. #define HAVE_GETENV 1
  53. #define HAVE_SETENV 1
  54. #define HAVE_PUTENV 1
  55. #define HAVE_QSORT 1
  56. #define HAVE_ABS 1
  57. #define HAVE_BCOPY 1
  58. #define HAVE_MEMSET 1
  59. #define HAVE_MEMCPY 1
  60. #define HAVE_MEMMOVE 1
  61. #define HAVE_MEMCMP 1
  62. #define HAVE_STRLEN 1
  63. #define HAVE_STRDUP 1
  64. #define HAVE_INDEX 1
  65. #define HAVE_RINDEX 1
  66. #define HAVE_STRCHR 1
  67. #define HAVE_STRRCHR 1
  68. #define HAVE_STRSTR 1
  69. #define HAVE_STRTOL 1
  70. #define HAVE_STRTOD 1
  71. #define HAVE_ATOI 1
  72. #define HAVE_ATOF 1
  73. #define HAVE_STRCMP 1
  74. #define HAVE_STRNCMP 1
  75. #define HAVE_STRICMP 1
  76. #define HAVE_STRCASECMP 1
  77. #define HAVE_SSCANF 1
  78. #define HAVE_SNPRINTF 1
  79. #define HAVE_VSNPRINTF 1
  80. /* DS isn't that sophisticated */
  81. #define LACKS_SYS_MMAN_H 1
  82. /* Enable various audio drivers */
  83. #define SDL_AUDIO_DRIVER_NDS 1
  84. /*#define SDL_AUDIO_DRIVER_DUMMY 1 TODO: uncomment this later*/
  85. /* Enable various input drivers */
  86. #define SDL_JOYSTICK_NDS 1
  87. /*#define SDL_JOYSTICK_DUMMY 1 TODO: uncomment this later*/
  88. /* DS has no dynamic linking afaik */
  89. #define SDL_LOADSO_DISABLED 1
  90. /* Enable various threading systems */
  91. /*#define SDL_THREAD_NDS 1*/
  92. #define SDL_THREADS_DISABLED 1
  93. /* Enable various timer systems */
  94. #define SDL_TIMER_NDS 1
  95. /* Enable various video drivers */
  96. #define SDL_VIDEO_DRIVER_NDS 1
  97. #ifdef USE_HW_RENDERER
  98. #define SDL_VIDEO_RENDER_NDS 1
  99. #else
  100. #define SDL_VIDEO_RENDER_NDS 0
  101. #endif
  102. /* Enable system power support */
  103. #define SDL_POWER_NINTENDODS 1
  104. /* Enable haptic support */
  105. #define SDL_HAPTIC_NDS 1
  106. #define SDL_BYTEORDER SDL_LIL_ENDIAN
  107. #endif /* _SDL_config_nintendods_h */