Anonymous Maarten 
							
						 
					 
					
						
						
							
						
						049eeee087 
					 
					
						
						
							
							Visual Studio versions older then 6.0 do not support __forceinline  
						
						
						
						
					 
					
						2025-10-11 01:00:03 +02:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						970234d62d 
					 
					
						
						
							
							Fixed documentation for aligned structure members  
						
						
						
						
					 
					
						2025-07-25 13:33:49 -07:00 
						 
				 
			
				
					
						
							
							
								Ozkan Sezer 
							
						 
					 
					
						
						
							
						
						329b5f27d6 
					 
					
						
						
							
							fix preprocessor directive for SDL_RESTRICT definition in C99 case.  
						
						
						
						
					 
					
						2025-05-30 23:56:50 +03:00 
						 
				 
			
				
					
						
							
							
								Ozkan Sezer 
							
						 
					 
					
						
						
							
						
						0d58594e66 
					 
					
						
						
							
							fix inverted __STDC_VERSION__ condition in SDL_RESTRICT definition.  
						
						
						
						
					 
					
						2025-05-30 23:51:50 +03:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						6a686185f7 
					 
					
						
						
							
							SDL_begin_code.h: Actually define SDL_RESTRICT.  
						
						... 
						
						
						
						We wrote documentation for this but never actually filled in the code. 
						
						
					 
					
						2025-05-30 15:59:40 -04:00 
						 
				 
			
				
					
						
							
							
								SDL Wiki Bot 
							
						 
					 
					
						
						
							
						
						f80e819c5b 
					 
					
						
						
							
							Sync SDL3 wiki -> header  
						
						... 
						
						
						
						[ci skip] 
						
						
					 
					
						2025-05-28 13:35:21 +00:00 
						 
				 
			
				
					
						
							
							
								SDL Wiki Bot 
							
						 
					 
					
						
						
							
						
						b7082e7e18 
					 
					
						
						
							
							Sync SDL3 wiki -> header  
						
						... 
						
						
						
						[ci skip] 
						
						
					 
					
						2025-05-27 17:31:04 +00:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						3940c660be 
					 
					
						
						
							
							begin_code: Added SDL_ALIGNED macro.  
						
						
						
						
					 
					
						2025-05-27 13:30:04 -04:00 
						 
				 
			
				
					
						
							
							
								Michael Fitzmayer 
							
						 
					 
					
						
						
							
						
						7ae64592c9 
					 
					
						
						
							
							Restore support for the Nokia N-Gage ( #12148 )  
						
						
						
						
					 
					
						2025-05-22 11:07:22 -07:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						7a5604cf0c 
					 
					
						
						
							
							Sync SDL3 wiki -> headers.  
						
						
						
						
					 
					
						2025-01-21 13:12:25 -05:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						f2074d7af3 
					 
					
						
						
							
							Updated copyright for 2025  
						
						
						
						
					 
					
						2025-01-01 07:45:52 -08:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						f0fad41f2c 
					 
					
						
						
							
							include: Filled in all remaining missing documentation!  
						
						
						
						
					 
					
						2024-12-22 01:58:13 -05:00 
						 
				 
			
				
					
						
							
							
								SDL Wiki Bot 
							
						 
					 
					
						
						
							
						
						c9e22d4672 
					 
					
						
						
							
							Sync SDL3 wiki -> header  
						
						... 
						
						
						
						[ci skip] 
						
						
					 
					
						2024-12-20 00:13:34 +00: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 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						42de2ac6a9 
					 
					
						
						
							
							Fixed typo  
						
						
						
						
					 
					
						2024-12-19 10:51:02 -08:00 
						 
				 
			
				
					
						
							
							
								SDL Wiki Bot 
							
						 
					 
					
						
						
							
						
						519923ea80 
					 
					
						
						
							
							Sync SDL3 wiki -> header  
						
						... 
						
						
						
						[ci skip] 
						
						
					 
					
						2024-12-19 17:20:47 +00:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						624a4d5f26 
					 
					
						
						
							
							include: Documented important SDL_begin_code symbols.  
						
						
						
						
					 
					
						2024-12-19 12:19:46 -05:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						79316ca36e 
					 
					
						
						
							
							Heavy work on improving category documentation.  
						
						... 
						
						
						
						Still more to go!
Reference Issue #9440 . 
						
						
					 
					
						2024-12-16 01:10:37 -05:00 
						 
				 
			
				
					
						
							
							
								Carl Åstholm 
							
						 
					 
					
						
						
							
						
						d6caf2abe7 
					 
					
						
						
							
							Remove SDL_RESTRICT in favor of doc comments  
						
						
						
						
					 
					
						2024-09-09 13:51:16 -07:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						ac08dde1b2 
					 
					
						
						
							
							windows: Clean out things that should be using defined(SDL_PLATFORM_WINDOWS).  
						
						
						
						
					 
					
						2024-09-06 13:28:39 -04:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						154452a726 
					 
					
						
						
							
							winrt: Removed WinRT/Windows Phone/UWP support.  
						
						... 
						
						
						
						Fixes  #10724 . 
					
						2024-09-06 13:28:39 -04:00 
						 
				 
			
				
					
						
							
							
								Anonymous Maarten 
							
						 
					 
					
						
						
							
						
						55934bc85e 
					 
					
						
						
							
							include: add SDL_RESTRICT for restricted pointer aliasing  
						
						
						
						
					 
					
						2024-09-06 01:35:43 +02:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						383ccb2b6a 
					 
					
						
						
							
							Finish removing SDL_DECLSPEC_FREE  
						
						
						
						
					 
					
						2024-07-28 08:06:20 -07:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						b5ad74998b 
					 
					
						
						
							
							Removed SDL_DECLSPEC_FREE  
						
						
						
						
					 
					
						2024-07-28 07:24:21 -07:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						4f55271571 
					 
					
						
						
							
							Removed temporary memory from the API  
						
						... 
						
						
						
						It was intended to make the API easier to use, but various automatic garbage collection all had flaws, and making the application periodically clean up temporary memory added cognitive load to using the API, and in many cases was it was difficult to restructure threaded code to handle this.
So, we're largely going back to the original system, where the API returns allocated results and you free them.
In addition, to solve the problems we originally wanted temporary memory for:
* Short strings with a finite count, like device names, get stored in a per-thread string pool.
* Events continue to use temporary memory internally, which is cleaned up on the next event processing cycle. 
						
						
					 
					
						2024-07-26 20:59:14 -07:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						5e513ecc7f 
					 
					
						
						
							
							Don't automatically free temporary memory, let the application call SDL_FreeTemporaryMemory() when it's ready.  
						
						... 
						
						
						
						Also mark up all functions that return temporary memory with SDL_DECLSPEC_TEMP, to help people implementing language bindings.
Fixes https://github.com/libsdl-org/SDL/issues/10378  
						
						
					 
					
						2024-07-26 10:05:03 -07:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						ecfa363889 
					 
					
						
						
							
							begin_code: Solaris Studio has __has_attribute defined by isn't usable here.  
						
						... 
						
						
						
						Fixes  #10095 .
(cherry picked from commit d96f1d5360 
					
						2024-06-27 22:13:48 -07:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						8e782602de 
					 
					
						
						
							
							wikiheaders: Fixes and cleanups to fix SDL_ReportAssertion's wiki page.  
						
						
						
						
					 
					
						2024-06-11 11:29:44 -04:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						6f2621438a 
					 
					
						
						
							
							Renamed DECLSPEC to SDL_DECLSPEC  
						
						
						
						
					 
					
						2024-05-17 17:09:09 -07:00 
						 
				 
			
				
					
						
							
							
								vittorioromeo 
							
						 
					 
					
						
						
							
						
						a69eaae32e 
					 
					
						
						
							
							Add SDL_NODISCARD macro to SDL_begin_code.h  
						
						
						
						
					 
					
						2024-05-16 17:08:52 -07:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						5e6d85b8f0 
					 
					
						
						
							
							wikiheaders: bridge wiki Category docs to the headers!  
						
						... 
						
						
						
						Did an initial cleanup on the headers and wrote a few pieces of documentation,
but this needs more work to fill out the documentation. 
						
						
					 
					
						2024-05-16 11:48:23 -04:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						62a7e419f7 
					 
					
						
						
							
							wikiheaders: Automatically categorize API symbols by subsystem.  
						
						
						
						
					 
					
						2024-05-14 13:30:42 -04:00 
						 
				 
			
				
					
						
							
							
								Anonymous Maarten 
							
						 
					 
					
						
						
							
						
						31d133db40 
					 
					
						
						
							
							Define SDL_PLATFORM_* macros instead of underscored ones ( #8875 )  
						
						
						
						
					 
					
						2024-01-24 01:40:51 +00:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						5b3ee51c6c 
					 
					
						
						
							
							Updated copyright for 2024  
						
						
						
						
					 
					
						2024-01-01 13:15:26 -08:00 
						 
				 
			
				
					
						
							
							
								Anonymous Maarten 
							
						 
					 
					
						
						
							
						
						917e036f6f 
					 
					
						
						
							
							MSVC has __declspec(deprecated)  
						
						
						
						
					 
					
						2023-08-09 02:54:18 +02:00 
						 
				 
			
				
					
						
							
							
								Anonymous Maarten 
							
						 
					 
					
						
						
							
						
						b6ae281e97 
					 
					
						
						
							
							Use #ifdef/#ifndef instead of #if defined/#if \!defined  
						
						
						
						
					 
					
						2023-03-30 21:35:01 +00:00 
						 
				 
			
				
					
						
							
							
								Ozkan Sezer 
							
						 
					 
					
						
						
							
						
						e7ea47a1b4 
					 
					
						
						
							
							add version check to SDL_MALLOC macro (for correctness)  
						
						
						
						
					 
					
						2023-02-03 17:40:40 +03:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						fde78d12f2 
					 
					
						
						
							
							Updated copyright for 2023  
						
						
						
						
					 
					
						2023-01-09 09:41:41 -08:00 
						 
				 
			
				
					
						
							
							
								Sam Lantinga 
							
						 
					 
					
						
						
							
						
						5dd07a5773 
					 
					
						
						
							
							The alloc_size attribute isn't supported in clang 3.x  
						
						
						
						
					 
					
						2023-01-06 12:10:21 -08:00 
						 
				 
			
				
					
						
							
							
								Sylvain Becker 
							
						 
					 
					
						
						
							
						
						d7d3c22dbf 
					 
					
						
						
							
							Remove more reserved identifiers  ( #6925 )  
						
						
						
						
					 
					
						2022-12-29 13:58:16 -08:00 
						 
				 
			
				
					
						
							
							
								Sylvain Becker 
							
						 
					 
					
						
						
							
						
						07808d6a03 
					 
					
						
						
							
							Remove underscore in guard header defines ( #6922 )  
						
						
						
						
					 
					
						2022-12-27 12:31:12 -08:00 
						 
				 
			
				
					
						
							
							
								Ryan C. Gordon 
							
						 
					 
					
						
						
							
						
						3197632347 
					 
					
						
						
							
							include: Renamed begin_code.h and close_code.h to have SDL_ prefixes.  
						
						... 
						
						
						
						Fixes  #6864 . 
					
						2022-12-22 11:39:26 -05:00