From 8c729d70098930786a5a68dad83133ca82ef7e40 Mon Sep 17 00:00:00 2001 From: PROP 65 <132837123+PROP65@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:31:47 +0000 Subject: [PATCH] Change 32bit formatting on MSVC --- src/nuklear.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nuklear.h b/src/nuklear.h index 74ff4aa8..384e44b5 100644 --- a/src/nuklear.h +++ b/src/nuklear.h @@ -167,8 +167,8 @@ extern "C" { #endif #endif #ifndef NK_INT32_FMT - #if defined(_MSC_VER) /* long is 32bit on Windows */ - #define NK_INT32_FMT "li" + #if defined(_MSC_VER) + #define NK_INT32_FMT "I32d" #else #define NK_INT32_FMT "i" #endif @@ -181,8 +181,8 @@ extern "C" { #endif #endif #ifndef NK_UINT32_FMT - #if defined(_MSC_VER) /* long is 32bit on Windows */ - #define NK_UINT32_FMT "lu" + #if defined(_MSC_VER) + #define NK_UINT32_FMT "I32u" #else #define NK_UINT32_FMT "u" #endif