From 19abb9c06beb987fce147d9aba4db4d228eafee6 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 15 Jul 2021 21:15:02 +0300
Subject: [PATCH] testplatform.c: always use %I64 instead of %ll for all
windows builds;
fixes MinGW gcc warnings:
testplatform.c:115:3: warning: unknown conversion type character 'l' in format
testplatform.c:115:3: warning: unknown conversion type character 'l' in format
testplatform.c:115:3: warning: too many arguments for format
---
test/testplatform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testplatform.c b/test/testplatform.c
index a7b0916..aed0f5f 100644
--- a/test/testplatform.c
+++ b/test/testplatform.c
@@ -109,7 +109,7 @@ int TestEndian(SDL_bool verbose)
}
#ifdef SDL_HAS_64BIT_TYPE
if ( verbose ) {
-#ifdef _MSC_VER
+#ifdef _WIN32
printf("Value 64 = 0x%I64X, swapped = 0x%I64X\n", value64, SDL_Swap64(value64));
#else
printf("Value 64 = 0x%llX, swapped = 0x%llX\n", (unsigned long long) value64, (unsigned long long) SDL_Swap64(value64));