From 7388054fa23c5f299a5cb3cc2639f6d386a9d06e Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Sun, 23 Nov 2025 13:41:08 -0500
Subject: [PATCH] main: Restore public domain comment in Windows code.
This, strictly speaking, doesn't _need_ to be public domain any more, since
SDL3 no longer inserts this code into apps via a static SDL_main library; it's
just part of the normal zlib-licensed SDL library and called into through a
well-defined entry point at startup, now.
But removing a public domain notice isn't the done thing, so we'll leave it in.
(To a related point: even if others have rewritten good portions of this code,
they're doing it under the assumption that this specific file has a public
domain license.)
---
src/main/windows/SDL_sysmain_runapp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/main/windows/SDL_sysmain_runapp.c b/src/main/windows/SDL_sysmain_runapp.c
index 5290c0a7e644b..7fac9538f671c 100644
--- a/src/main/windows/SDL_sysmain_runapp.c
+++ b/src/main/windows/SDL_sysmain_runapp.c
@@ -24,6 +24,9 @@
#include "../../core/windows/SDL_windows.h"
+/* Win32-specific SDL_RunApp(), which does most of the SDL_main work,
+ based on SDL_windows_main.c, placed in the public domain by Sam Lantinga 4/13/98 */
+
#include <shellapi.h> // CommandLineToArgvW()
static int OutOfMemory(void)