From 1cdb08a81a36aba236206a826aeacaaac2fe0030 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 8 Feb 2026 23:48:02 +0000 Subject: [PATCH] Update uuid C++ implementation --- src/uuid/uuid.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uuid/uuid.h b/src/uuid/uuid.h index 4707378..ed493e8 100644 --- a/src/uuid/uuid.h +++ b/src/uuid/uuid.h @@ -24,7 +24,11 @@ struct WUUID { /* Low level UUID API */ +#ifdef WAPP_PLATFORM_CPP +#define wapp_uuid_create() (WUUID{wapp_str8_buf(UUID_BUF_LENGTH)}) +#else #define wapp_uuid_create() ((WUUID){.uuid = wapp_str8_buf(UUID_BUF_LENGTH)}) +#endif // Just returns the same pointer that was passed in with the UUID initialised. // Fails when passed a NULL pointer.