From 9c9756be3309d38b58e3ec69325cabeb536bc3b3 Mon Sep 17 00:00:00 2001 From: David Mak Date: Mon, 22 Jan 2024 16:44:49 +0800 Subject: [PATCH] standalone: Use size_t in demo.c --- nac3standalone/demo/demo.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/nac3standalone/demo/demo.c b/nac3standalone/demo/demo.c index 532bd10..e674a5f 100644 --- a/nac3standalone/demo/demo.c +++ b/nac3standalone/demo/demo.c @@ -1,18 +1,12 @@ +#include #include #include #include #include #include #include -#include -#if __SIZEOF_POINTER__ == 8 - #define usize uint64_t -#elif __SIZEOF_POINTER__ == 4 - #define usize uint32_t -#else - #error "Unsupported platform - Platform is not 32-bit or 64-bit" -#endif +#define usize size_t double dbl_nan(void) { return NAN;