SDL: Fixed warnings on Windows

From 5b051459edbfe1f6eb1f5c34f637a7320da1762f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 24 Jun 2021 18:09:04 -0700
Subject: [PATCH] Fixed warnings on Windows

---
 src/joystick/sort_controllers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/joystick/sort_controllers.py b/src/joystick/sort_controllers.py
index 084260965..bcd05f6a4 100755
--- a/src/joystick/sort_controllers.py
+++ b/src/joystick/sort_controllers.py
@@ -67,7 +67,7 @@ def write_controllers():
     for entry in sorted(controllers, key=lambda entry: entry[2]+"-"+entry[1]):
         line = "".join(entry) + "\n"
         line = line.replace("\t", "    ")
-        if not line.endswith(",\n") and not line.endswith("*/\n"):
+        if not line.endswith(",\n") and not line.endswith("*/\n") and not line.endswith(",\r\n") and not line.endswith("*/\r\n"):
             print("Warning: '%s' is missing a comma at the end of the line" % (line))
         output.write(line)