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.