Max Seidenstücker
8f8880a8eb
Merge all occurances of __func__ and __FUNCTION__ to SDL_FUNCTION
2026-02-07 07:34:11 -08:00
Sam Lantinga
5f086e7623
Updated copyright for 2026
2026-01-01 09:40:08 -08:00
SDL Wiki Bot
6217672bde
Sync SDL3 wiki -> header
...
[ci skip]
2025-12-02 12:36:00 +00:00
Albin Johansson
7381a2b072
Use cast operators in headers to avoid warnings
...
This avoids compiler warnings when consuming the
headers from C++.
2025-10-25 19:52:23 -04:00
Anonymous Maarten
aa57984928
stdinc: add strtok_r prototype for clang-tidy
2025-10-15 14:41:15 -04:00
Anonymous Maarten
45d65f6e1f
Older Visual Studio does not provide a intptr_t typedef
2025-10-11 01:00:03 +02:00
nightmareci
2f5bc17ea6
Fix support for Windows XP and up ( #13904 )
2025-09-08 13:00:26 -07:00
arnau.nau
ee5e249008
Docs fix for SDL_stdinc.h: floor,floorf,ceil,ceilf
2025-08-20 18:01:46 -04:00
Simon McVittie
d83503f80e
Fix some typos detected by Debian's lintian QA tool
...
I assume the demoninator is a typo, rather than an indication that
someone has been playing too much Doom :-)
Signed-off-by: Simon McVittie <smcv@collabora.com >
2025-08-07 13:55:15 -07:00
Ryan C. Gordon
a2dcdfcb2d
stdinc: Docs said "macro" but meant "datatype."
2025-07-11 14:24:12 -04:00
Ryan C. Gordon
8d9a4fe843
stdinc: Corrected documentation for SDL_atan2 and SDL_atan2f.
...
Fixes #13099 .
2025-05-22 09:52:15 -04:00
Ozkan Sezer
17bba029ba
don't prototype strdup() for __clang_analyzer__ case in windows builds.
...
Fixes: https://github.com/libsdl-org/SDL/issues/12948 .
2025-05-04 10:35:31 -07:00
Sam Lantinga
46c314cc3d
Revert "bool is 4 bytes in Apple MacOS X 32 bit PPC ABI"
...
This reverts commit 5a59b5f321 .
The strong ABI guarantee only applies if bool is a byte (we repurposed a Uint8 field as a bool in SDL_gpu.h), and 32-bit PPC isn't a platform we support, so I'm going to back this patch out.
2025-04-08 08:14:25 -07:00
Ozkan Sezer
5a59b5f321
bool is 4 bytes in Apple MacOS X 32 bit PPC ABI
...
Reference issue: https://github.com/libsdl-org/SDL/issues/12749 .
2025-04-07 19:21:30 +03:00
Carl Åstholm
7ec13a2ead
Document SDL_malloc alignment guarantees
2025-03-24 19:10:31 -07:00
SDL Wiki Bot
fc35107854
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-07 17:01:23 +00:00
Sam Lantinga
1c2189c7c9
strings.h isn't available in Windows environments
...
I believe this header isn't necessary for clang-tidy, string.h has all the functions we care about.
Fixes https://github.com/libsdl-org/SDL/issues/12238
2025-02-25 09:41:50 -08:00
SDL Wiki Bot
041894a523
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-13 01:45:34 +00:00
mausimus
725ee7665c
Documentation: fixed typos around floats precision
2025-01-27 14:12:24 -05:00
Sam Lantinga
ed2920afef
All SDL 3.0 release symbols are at version 3.2.0
2025-01-21 10:19:21 -08:00
Ryan C. Gordon
7a5604cf0c
Sync SDL3 wiki -> headers.
2025-01-21 13:12:25 -05:00
SDL Wiki Bot
1f3b40797d
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-10 06:39:06 +00:00
Ryan C. Gordon
fb94a79f89
stdinc: define SDL_NOLONGLONG for old Visual Studios, document the symbol.
...
Reference PR #11900 .
2025-01-10 01:37:25 -05:00
SDL Wiki Bot
00b23a012c
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-09 22:27:31 +00:00
Anonymous Maarten
a78104a47f
Disable long long support in the headers with SDL_NOLONGLONG
...
Some older toolchains don't support 'long long'.
2025-01-09 16:04:14 -05:00
SDL Wiki Bot
ece6a6ed8f
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-05 19:12:20 +00:00
Ryan C. Gordon
7f9ee31024
include: Fill in more category documentation.
...
Reference Issue #11874 .
2025-01-05 14:11:11 -05:00
Sam Lantinga
f2074d7af3
Updated copyright for 2025
2025-01-01 07:45:52 -08:00
Anonymous Maarten
d5f08b8f4b
stdinc: use __has_include to detect <stdbool.h>
...
Newer emscripten SDK does an unconditional #include <stdbool.h>,
which clashes with our custom bool.h typedef
2024-12-29 20:54:12 +01:00
Brody Eller
5bf742daa6
Fix documentation for SDL_sinf
2024-12-24 20:41:41 -08:00
SDL Wiki Bot
ecea3471f6
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-22 20:20:41 +00:00
Anonymous Maarten
f8d8bf8066
SDL_GetNumAllocations returns -1 when allocation counting is disabled
2024-12-22 12:20:04 -08:00
SDL Wiki Bot
56cf8d8dc9
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-22 07:09:56 +00:00
Ryan C. Gordon
f0fad41f2c
include: Filled in all remaining missing documentation!
2024-12-22 01:58:13 -05:00
SDL Wiki Bot
1025087c2e
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-21 13:15:56 +00:00
SDL Wiki Bot
b815123cf2
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-20 07:48:16 +00:00
Ryan C. Gordon
819e1cc95b
SDL_stdinc.h: A couple wikiheaders fixes.
2024-12-20 02:45:04 -05:00
Ryan C. Gordon
0b401137d2
SDL_stdinc.h: Document more stuff.
...
There's only a handful of C runtime wrappers left in this header now!
2024-12-20 02:28:34 -05:00
Ryan C. Gordon
b83dd793fd
SDL_stdinc.h: Tons of documentation updates.
...
Almost everything in this header is now documented! The remaining gaps are
literal C runtime wrappers like SDL_strdup, and the analyzer macros like
SDL_INOUT_Z_CAP.
2024-12-20 01:09:40 -05:00
Ryan C. Gordon
ff366fba87
include: Move SDL_HAS_BUILTIN to SDL_begin_code.h, document it.
...
This macro fits better here, since most of the other macros in this file are
for testing similar compiler/target features, etc.
2024-12-19 19:12:56 -05:00
SDL Wiki Bot
5608bf5866
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-18 06:22:41 +00:00
Ryan C. Gordon
e957840d34
include: Filling in some more documentation gaps.
2024-12-18 01:18:40 -05:00
Ryan C. Gordon
be5fba963a
wikiheaders: optionally generate a Quick Reference page.
...
Plus some fixes to SDL's headers this brought up.
2024-12-10 11:25:15 -05:00
SDL Wiki Bot
c0f1fe8e7f
Sync SDL3 wiki -> header
...
[ci skip]
2024-11-28 04:36:33 +00:00
SDL Wiki Bot
572cc7af63
Sync SDL3 wiki -> header
...
[ci skip]
2024-11-16 04:44:23 +00:00
ChillerDragon
7d7ee43ddb
stdinc: document SDL_strnlen and SDL_strlen
...
See https://github.com/libsdl-org/sdlwiki/issues/635
2024-11-15 23:43:51 -05:00
Zack Middleton
8a2cac7aaa
Fix SDL_PRIs64 to use standard PRId64
...
PRIs64 doesn't exist in C standards.
2024-11-08 12:37:14 +03:00
SDL Wiki Bot
0508f100e2
Sync SDL3 wiki -> header
...
[ci skip]
2024-11-01 22:50:16 +00:00
Petar Popovic
db4e2ccbac
Allow redefinition of only one macro SDL_SINT64_C SDL_UINT64_C
2024-10-24 07:37:44 -07:00
Susko3
d0cf2c19d1
Allow defining custom SDL_SINT64_C and SDL_UINT64_C macros ( #11315 )
2024-10-23 17:03:13 -07:00