gosu 2.0.0.pre7 → 2.0.0.pre8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/dependencies/SDL/include/SDL.h +1 -1
  3. data/dependencies/SDL/include/SDL_assert.h +1 -1
  4. data/dependencies/SDL/include/SDL_atomic.h +2 -2
  5. data/dependencies/SDL/include/SDL_audio.h +1 -1
  6. data/dependencies/SDL/include/SDL_bits.h +1 -1
  7. data/dependencies/SDL/include/SDL_blendmode.h +3 -3
  8. data/dependencies/SDL/include/SDL_clipboard.h +1 -1
  9. data/dependencies/SDL/include/SDL_config.h +1 -1
  10. data/dependencies/SDL/include/SDL_cpuinfo.h +1 -1
  11. data/dependencies/SDL/include/SDL_egl.h +1 -1
  12. data/dependencies/SDL/include/SDL_endian.h +1 -1
  13. data/dependencies/SDL/include/SDL_error.h +1 -1
  14. data/dependencies/SDL/include/SDL_events.h +4 -11
  15. data/dependencies/SDL/include/SDL_filesystem.h +3 -3
  16. data/dependencies/SDL/include/SDL_gamecontroller.h +27 -5
  17. data/dependencies/SDL/include/SDL_gesture.h +1 -1
  18. data/dependencies/SDL/include/SDL_guid.h +1 -1
  19. data/dependencies/SDL/include/SDL_haptic.h +1 -1
  20. data/dependencies/SDL/include/SDL_hidapi.h +1 -1
  21. data/dependencies/SDL/include/SDL_hints.h +257 -1
  22. data/dependencies/SDL/include/SDL_joystick.h +1 -1
  23. data/dependencies/SDL/include/SDL_keyboard.h +5 -3
  24. data/dependencies/SDL/include/SDL_keycode.h +1 -1
  25. data/dependencies/SDL/include/SDL_loadso.h +1 -1
  26. data/dependencies/SDL/include/SDL_locale.h +1 -1
  27. data/dependencies/SDL/include/SDL_log.h +3 -3
  28. data/dependencies/SDL/include/SDL_main.h +1 -1
  29. data/dependencies/SDL/include/SDL_messagebox.h +1 -1
  30. data/dependencies/SDL/include/SDL_metal.h +1 -1
  31. data/dependencies/SDL/include/SDL_misc.h +1 -1
  32. data/dependencies/SDL/include/SDL_mouse.h +1 -1
  33. data/dependencies/SDL/include/SDL_mutex.h +1 -1
  34. data/dependencies/SDL/include/SDL_name.h +1 -1
  35. data/dependencies/SDL/include/SDL_opengl.h +1 -1
  36. data/dependencies/SDL/include/SDL_opengles.h +1 -1
  37. data/dependencies/SDL/include/SDL_opengles2.h +1 -1
  38. data/dependencies/SDL/include/SDL_pixels.h +20 -2
  39. data/dependencies/SDL/include/SDL_platform.h +7 -1
  40. data/dependencies/SDL/include/SDL_power.h +1 -1
  41. data/dependencies/SDL/include/SDL_quit.h +1 -1
  42. data/dependencies/SDL/include/SDL_rect.h +1 -1
  43. data/dependencies/SDL/include/SDL_render.h +2 -2
  44. data/dependencies/SDL/include/SDL_revision.h +2 -2
  45. data/dependencies/SDL/include/SDL_rwops.h +1 -1
  46. data/dependencies/SDL/include/SDL_scancode.h +1 -1
  47. data/dependencies/SDL/include/SDL_sensor.h +1 -1
  48. data/dependencies/SDL/include/SDL_shape.h +1 -1
  49. data/dependencies/SDL/include/SDL_stdinc.h +18 -12
  50. data/dependencies/SDL/include/SDL_surface.h +1 -1
  51. data/dependencies/SDL/include/SDL_system.h +17 -2
  52. data/dependencies/SDL/include/SDL_syswm.h +1 -1
  53. data/dependencies/SDL/include/SDL_test.h +1 -1
  54. data/dependencies/SDL/include/SDL_test_assert.h +1 -1
  55. data/dependencies/SDL/include/SDL_test_common.h +1 -1
  56. data/dependencies/SDL/include/SDL_test_compare.h +1 -1
  57. data/dependencies/SDL/include/SDL_test_crc32.h +1 -1
  58. data/dependencies/SDL/include/SDL_test_font.h +1 -1
  59. data/dependencies/SDL/include/SDL_test_fuzzer.h +1 -1
  60. data/dependencies/SDL/include/SDL_test_harness.h +1 -1
  61. data/dependencies/SDL/include/SDL_test_images.h +1 -1
  62. data/dependencies/SDL/include/SDL_test_log.h +1 -1
  63. data/dependencies/SDL/include/SDL_test_md5.h +1 -1
  64. data/dependencies/SDL/include/SDL_test_memory.h +1 -1
  65. data/dependencies/SDL/include/SDL_test_random.h +1 -1
  66. data/dependencies/SDL/include/SDL_thread.h +1 -1
  67. data/dependencies/SDL/include/SDL_timer.h +1 -1
  68. data/dependencies/SDL/include/SDL_touch.h +1 -1
  69. data/dependencies/SDL/include/SDL_types.h +1 -1
  70. data/dependencies/SDL/include/SDL_version.h +3 -3
  71. data/dependencies/SDL/include/SDL_video.h +8 -2
  72. data/dependencies/SDL/include/begin_code.h +3 -1
  73. data/dependencies/SDL/include/close_code.h +1 -1
  74. data/dependencies/SDL/lib/x64/libSDL2.dll.a +0 -0
  75. data/dependencies/SDL/lib/x86/libSDL2.dll.a +0 -0
  76. data/dependencies/SDL_sound/SDL_sound_vorbis.c +6 -3
  77. data/dependencies/SDL_sound/dr_flac.h +9 -5
  78. data/dependencies/SDL_sound/dr_mp3.h +14 -3
  79. data/dependencies/SDL_sound/stb_vorbis.h +66 -20
  80. data/dependencies/stb/stb_image.h +173 -175
  81. data/lib/SDL2.dll +0 -0
  82. data/lib/gosu/image.rb +2 -1
  83. data/lib64/SDL2.dll +0 -0
  84. metadata +5 -5
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -59,7 +59,7 @@ extern "C" {
59
59
  * By default the application category is enabled at the INFO level,
60
60
  * the assert category is enabled at the WARN level, test is enabled
61
61
  * at the VERBOSE level and all other categories are enabled at the
62
- * CRITICAL level.
62
+ * ERROR level.
63
63
  */
64
64
  typedef enum
65
65
  {
@@ -352,7 +352,7 @@ extern DECLSPEC void SDLCALL SDL_LogMessage(int category,
352
352
  */
353
353
  extern DECLSPEC void SDLCALL SDL_LogMessageV(int category,
354
354
  SDL_LogPriority priority,
355
- const char *fmt, va_list ap);
355
+ SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(3);
356
356
 
357
357
  /**
358
358
  * The prototype for the log output callback function.
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -61,7 +61,10 @@ typedef enum
61
61
  SDL_PIXELTYPE_ARRAYU16,
62
62
  SDL_PIXELTYPE_ARRAYU32,
63
63
  SDL_PIXELTYPE_ARRAYF16,
64
- SDL_PIXELTYPE_ARRAYF32
64
+ SDL_PIXELTYPE_ARRAYF32,
65
+
66
+ /* This must be at the end of the list to avoid breaking the existing ABI */
67
+ SDL_PIXELTYPE_INDEX2
65
68
  } SDL_PixelType;
66
69
 
67
70
  /** Bitmap pixel order, high bit -> low bit. */
@@ -134,6 +137,7 @@ typedef enum
134
137
  #define SDL_ISPIXELFORMAT_INDEXED(format) \
135
138
  (!SDL_ISPIXELFORMAT_FOURCC(format) && \
136
139
  ((SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX1) || \
140
+ (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX2) || \
137
141
  (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX4) || \
138
142
  (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX8)))
139
143
 
@@ -177,6 +181,12 @@ typedef enum
177
181
  SDL_PIXELFORMAT_INDEX1MSB =
178
182
  SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_1234, 0,
179
183
  1, 0),
184
+ SDL_PIXELFORMAT_INDEX2LSB =
185
+ SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX2, SDL_BITMAPORDER_4321, 0,
186
+ 2, 0),
187
+ SDL_PIXELFORMAT_INDEX2MSB =
188
+ SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX2, SDL_BITMAPORDER_1234, 0,
189
+ 2, 0),
180
190
  SDL_PIXELFORMAT_INDEX4LSB =
181
191
  SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_4321, 0,
182
192
  4, 0),
@@ -276,11 +286,19 @@ typedef enum
276
286
  SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_ARGB8888,
277
287
  SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_BGRA8888,
278
288
  SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_ABGR8888,
289
+ SDL_PIXELFORMAT_RGBX32 = SDL_PIXELFORMAT_RGBX8888,
290
+ SDL_PIXELFORMAT_XRGB32 = SDL_PIXELFORMAT_XRGB8888,
291
+ SDL_PIXELFORMAT_BGRX32 = SDL_PIXELFORMAT_BGRX8888,
292
+ SDL_PIXELFORMAT_XBGR32 = SDL_PIXELFORMAT_XBGR8888,
279
293
  #else
280
294
  SDL_PIXELFORMAT_RGBA32 = SDL_PIXELFORMAT_ABGR8888,
281
295
  SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_BGRA8888,
282
296
  SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_ARGB8888,
283
297
  SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_RGBA8888,
298
+ SDL_PIXELFORMAT_RGBX32 = SDL_PIXELFORMAT_XBGR8888,
299
+ SDL_PIXELFORMAT_XRGB32 = SDL_PIXELFORMAT_BGRX8888,
300
+ SDL_PIXELFORMAT_BGRX32 = SDL_PIXELFORMAT_XRGB8888,
301
+ SDL_PIXELFORMAT_XBGR32 = SDL_PIXELFORMAT_RGBX8888,
284
302
  #endif
285
303
 
286
304
  SDL_PIXELFORMAT_YV12 = /**< Planar mode: Y + V + U (3 planes) */
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -166,6 +166,12 @@
166
166
  #define WINAPI_FAMILY_WINRT 0
167
167
  #endif /* HAVE_WINAPIFAMILY_H */
168
168
 
169
+ #if (HAVE_WINAPIFAMILY_H) && defined(WINAPI_FAMILY_PHONE_APP)
170
+ #define SDL_WINAPI_FAMILY_PHONE (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
171
+ #else
172
+ #define SDL_WINAPI_FAMILY_PHONE 0
173
+ #endif
174
+
169
175
  #if WINAPI_FAMILY_WINRT
170
176
  #undef __WINRT__
171
177
  #define __WINRT__ 1
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -42,7 +42,7 @@
42
42
  * of the many good 3D engines.
43
43
  *
44
44
  * These functions must be called from the main thread.
45
- * See this bug for details: http://bugzilla.libsdl.org/show_bug.cgi?id=1995
45
+ * See this bug for details: https://github.com/libsdl-org/SDL/issues/986
46
46
  */
47
47
 
48
48
  #ifndef SDL_render_h_
@@ -1,7 +1,7 @@
1
1
  /* Generated by updaterev.sh, do not edit */
2
2
  #ifdef SDL_VENDOR_INFO
3
- #define SDL_REVISION "SDL-release-2.28.3-0-g8a5ba43d0 (" SDL_VENDOR_INFO ")"
3
+ #define SDL_REVISION "SDL-release-2.30.0-0-g859844eae (" SDL_VENDOR_INFO ")"
4
4
  #else
5
- #define SDL_REVISION "SDL-release-2.28.3-0-g8a5ba43d0"
5
+ #define SDL_REVISION "SDL-release-2.30.0-0-g859844eae"
6
6
  #endif
7
7
  #define SDL_REVISION_NUMBER 0
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -257,7 +257,7 @@ typedef uint64_t Uint64;
257
257
  #define SDL_PRIs64 PRIs64
258
258
  #elif defined(__WIN32__) || defined(__GDK__)
259
259
  #define SDL_PRIs64 "I64d"
260
- #elif defined(__LINUX__) && defined(__LP64__)
260
+ #elif defined(__LP64__) && !defined(__APPLE__)
261
261
  #define SDL_PRIs64 "ld"
262
262
  #else
263
263
  #define SDL_PRIs64 "lld"
@@ -268,7 +268,7 @@ typedef uint64_t Uint64;
268
268
  #define SDL_PRIu64 PRIu64
269
269
  #elif defined(__WIN32__) || defined(__GDK__)
270
270
  #define SDL_PRIu64 "I64u"
271
- #elif defined(__LINUX__) && defined(__LP64__)
271
+ #elif defined(__LP64__) && !defined(__APPLE__)
272
272
  #define SDL_PRIu64 "lu"
273
273
  #else
274
274
  #define SDL_PRIu64 "llu"
@@ -279,7 +279,7 @@ typedef uint64_t Uint64;
279
279
  #define SDL_PRIx64 PRIx64
280
280
  #elif defined(__WIN32__) || defined(__GDK__)
281
281
  #define SDL_PRIx64 "I64x"
282
- #elif defined(__LINUX__) && defined(__LP64__)
282
+ #elif defined(__LP64__) && !defined(__APPLE__)
283
283
  #define SDL_PRIx64 "lx"
284
284
  #else
285
285
  #define SDL_PRIx64 "llx"
@@ -290,7 +290,7 @@ typedef uint64_t Uint64;
290
290
  #define SDL_PRIX64 PRIX64
291
291
  #elif defined(__WIN32__) || defined(__GDK__)
292
292
  #define SDL_PRIX64 "I64X"
293
- #elif defined(__LINUX__) && defined(__LP64__)
293
+ #elif defined(__LP64__) && !defined(__APPLE__)
294
294
  #define SDL_PRIX64 "lX"
295
295
  #else
296
296
  #define SDL_PRIX64 "llX"
@@ -336,7 +336,9 @@ typedef uint64_t Uint64;
336
336
  #define SDL_PRINTF_FORMAT_STRING
337
337
  #define SDL_SCANF_FORMAT_STRING
338
338
  #define SDL_PRINTF_VARARG_FUNC( fmtargnumber )
339
+ #define SDL_PRINTF_VARARG_FUNCV( fmtargnumber )
339
340
  #define SDL_SCANF_VARARG_FUNC( fmtargnumber )
341
+ #define SDL_SCANF_VARARG_FUNCV( fmtargnumber )
340
342
  #else
341
343
  #if defined(_MSC_VER) && (_MSC_VER >= 1600) /* VS 2010 and above */
342
344
  #include <sal.h>
@@ -362,10 +364,14 @@ typedef uint64_t Uint64;
362
364
  #endif
363
365
  #if defined(__GNUC__)
364
366
  #define SDL_PRINTF_VARARG_FUNC( fmtargnumber ) __attribute__ (( format( __printf__, fmtargnumber, fmtargnumber+1 )))
367
+ #define SDL_PRINTF_VARARG_FUNCV( fmtargnumber ) __attribute__(( format( __printf__, fmtargnumber, 0 )))
365
368
  #define SDL_SCANF_VARARG_FUNC( fmtargnumber ) __attribute__ (( format( __scanf__, fmtargnumber, fmtargnumber+1 )))
369
+ #define SDL_SCANF_VARARG_FUNCV( fmtargnumber ) __attribute__(( format( __scanf__, fmtargnumber, 0 )))
366
370
  #else
367
371
  #define SDL_PRINTF_VARARG_FUNC( fmtargnumber )
372
+ #define SDL_PRINTF_VARARG_FUNCV( fmtargnumber )
368
373
  #define SDL_SCANF_VARARG_FUNC( fmtargnumber )
374
+ #define SDL_SCANF_VARARG_FUNCV( fmtargnumber )
369
375
  #endif
370
376
  #endif /* SDL_DISABLE_ANALYZE_MACROS */
371
377
 
@@ -603,11 +609,11 @@ extern DECLSPEC int SDLCALL SDL_strcasecmp(const char *str1, const char *str2);
603
609
  extern DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *str2, size_t len);
604
610
 
605
611
  extern DECLSPEC int SDLCALL SDL_sscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt, ...) SDL_SCANF_VARARG_FUNC(2);
606
- extern DECLSPEC int SDLCALL SDL_vsscanf(const char *text, const char *fmt, va_list ap);
612
+ extern DECLSPEC int SDLCALL SDL_vsscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt, va_list ap) SDL_SCANF_VARARG_FUNCV(2);
607
613
  extern DECLSPEC int SDLCALL SDL_snprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, ... ) SDL_PRINTF_VARARG_FUNC(3);
608
- extern DECLSPEC int SDLCALL SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt, va_list ap);
614
+ extern DECLSPEC int SDLCALL SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(3);
609
615
  extern DECLSPEC int SDLCALL SDL_asprintf(char **strp, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
610
- extern DECLSPEC int SDLCALL SDL_vasprintf(char **strp, const char *fmt, va_list ap);
616
+ extern DECLSPEC int SDLCALL SDL_vasprintf(char **strp, SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(2);
611
617
 
612
618
  #ifndef HAVE_M_PI
613
619
  #ifndef M_PI
@@ -688,8 +694,8 @@ extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf,
688
694
  size_t * outbytesleft);
689
695
 
690
696
  /**
691
- * This function converts a buffer or string between encodings in one pass, returning a
692
- * string that must be freed with SDL_free() or NULL on error.
697
+ * This function converts a buffer or string between encodings in one pass,
698
+ * returning a string that must be freed with SDL_free() or NULL on error.
693
699
  *
694
700
  * \since This function is available since SDL 2.0.0.
695
701
  */
@@ -698,8 +704,8 @@ extern DECLSPEC char *SDLCALL SDL_iconv_string(const char *tocode,
698
704
  const char *inbuf,
699
705
  size_t inbytesleft);
700
706
  #define SDL_iconv_utf8_locale(S) SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1)
701
- #define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2-INTERNAL", "UTF-8", S, SDL_strlen(S)+1)
702
- #define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4-INTERNAL", "UTF-8", S, SDL_strlen(S)+1)
707
+ #define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1)
708
+ #define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1)
703
709
  #define SDL_iconv_wchar_utf8(S) SDL_iconv_string("UTF-8", "WCHAR_T", (char *)S, (SDL_wcslen(S)+1)*sizeof(wchar_t))
704
710
 
705
711
  /* force builds using Clang's static analysis tools to use literal C runtime
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -593,7 +593,8 @@ extern DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void
593
593
 
594
594
  /* Functions used only by GDK */
595
595
  #if defined(__GDK__)
596
- typedef struct XTaskQueueObject * XTaskQueueHandle;
596
+ typedef struct XTaskQueueObject *XTaskQueueHandle;
597
+ typedef struct XUser *XUserHandle;
597
598
 
598
599
  /**
599
600
  * Gets a reference to the global async task queue handle for GDK,
@@ -610,6 +611,20 @@ typedef struct XTaskQueueObject * XTaskQueueHandle;
610
611
  */
611
612
  extern DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(XTaskQueueHandle * outTaskQueue);
612
613
 
614
+ /**
615
+ * Gets a reference to the default user handle for GDK.
616
+ *
617
+ * This is effectively a synchronous version of XUserAddAsync, which always
618
+ * prefers the default user and allows a sign-in UI.
619
+ *
620
+ * \param outUserHandle a pointer to be filled in with the default user
621
+ * handle.
622
+ * \returns 0 if success, -1 if any error occurs.
623
+ *
624
+ * \since This function is available since SDL 2.28.0.
625
+ */
626
+ extern DECLSPEC int SDLCALL SDL_GDKGetDefaultUser(XUserHandle * outUserHandle);
627
+
613
628
  #endif
614
629
 
615
630
  /* Ends C function definitions when using C++ */
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Simple DirectMedia Layer
3
- Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
3
+ Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages