1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From 72a8c8a2180233dd3517d80eeff7101dd96b61c2 Mon Sep 17 00:00:00 2001
From: yangfl <yangfl@users.noreply.github.com>
Date: Wed, 10 Jul 2019 11:03:57 +0800
Subject: [PATCH 05/11] stb_sprintf.h: fix pointer detection
---
stb_sprintf.h | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/stb_sprintf.h b/stb_sprintf.h
index ca432a6..cfd0948 100644
--- a/stb_sprintf.h
+++ b/stb_sprintf.h
@@ -230,11 +230,8 @@ STBSP__PUBLICDEC void STB_SPRINTF_DECORATE(set_separators)(char comma, char peri
#define stbsp__uint16 unsigned short
#ifndef stbsp__uintptr
-#if defined(__ppc64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(_M_X64) || defined(__x86_64__) || defined(__x86_64) || defined(__s390x__)
-#define stbsp__uintptr stbsp__uint64
-#else
-#define stbsp__uintptr stbsp__uint32
-#endif
+#include <stdint.h>
+#define stbsp__uintptr uintptr_t
#endif
#ifndef STB_SPRINTF_MSVC_MODE // used for MSVC2013 and earlier (MSVC2015 matches GCC)
--
2.47.2
|