SDL: testautomation_guid.c: fix integer warning in 32 bit builds. (7f7ea)

From 7f7ea909bcc3a949ade58d6629d8719a21f5a8f9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 31 May 2023 04:50:02 +0300
Subject: [PATCH] testautomation_guid.c: fix integer warning in 32 bit builds.

---
 test/testautomation_guid.c | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/test/testautomation_guid.c b/test/testautomation_guid.c
index 593b7fbb910d..cf99dea8139a 100644
--- a/test/testautomation_guid.c
+++ b/test/testautomation_guid.c
@@ -5,12 +5,26 @@
 #include "SDL.h"
 #include "SDL_test.h"
 
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
 /* ================= Test Case Implementation ================== */
 
 /* Helper functions */
 
 #define NUM_TEST_GUIDS 5
 
+#ifndef UINT64_C
+#ifdef _MSC_VER
+#define UINT64_C(x) x##ui64
+#elif defined(_LP64)
+#define UINT64_C(x) x##UL
+#else
+#define UINT64_C(x) x##ULL
+#endif
+#endif
+
 static struct
 {
     char *str;
@@ -18,19 +32,19 @@ static struct
 } test_guids[NUM_TEST_GUIDS] = {
     { "0000000000000000"
       "ffffffffffffffff",
-      0x0000000000000000, 0xfffffffffffffffflu },
+      UINT64_C(0x0000000000000000), UINT64_C(0xffffffffffffffff) },
     { "0011223344556677"
       "8091a2b3c4d5e6f0",
-      0x0011223344556677lu, 0x8091a2b3c4d5e6f0lu },
+      UINT64_C(0x0011223344556677), UINT64_C(0x8091a2b3c4d5e6f0) },
     { "a011223344556677"
       "8091a2b3c4d5e6f0",
-      0xa011223344556677lu, 0x8091a2b3c4d5e6f0lu },
+      UINT64_C(0xa011223344556677), UINT64_C(0x8091a2b3c4d5e6f0) },
     { "a011223344556677"
       "8091a2b3c4d5e6f1",
-      0xa011223344556677lu, 0x8091a2b3c4d5e6f1lu },
+      UINT64_C(0xa011223344556677), UINT64_C(0x8091a2b3c4d5e6f1) },
     { "a011223344556677"
       "8191a2b3c4d5e6f0",
-      0xa011223344556677lu, 0x8191a2b3c4d5e6f0lu },
+      UINT64_C(0xa011223344556677), UINT64_C(0x8191a2b3c4d5e6f0) },
 };
 
 static void