standalone: Use size_t in demo.c

pull/374/head
David Mak 2024-01-22 16:44:49 +08:00
parent 2a922c7480
commit 9c9756be33
1 changed files with 2 additions and 8 deletions

View File

@ -1,18 +1,12 @@
#include <inttypes.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#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;