Change UUID to WUUID

Windows defines a UUID struct that causes clashes
This commit is contained in:
2025-12-15 15:13:56 +00:00
parent 6b7421c25d
commit 50b6a0b0f7
2 changed files with 12 additions and 12 deletions

View File

@@ -15,8 +15,8 @@ BEGIN_C_LINKAGE
#define WAPP_UUID_SPEC WAPP_STR8_SPEC
#define wapp_uuid_varg(UUID) wapp_str8_varg((UUID).uuid)
typedef struct uuid UUID;
struct uuid {
typedef struct wapp_uuid WUUID;
struct wapp_uuid {
Str8 uuid;
};
@@ -28,7 +28,7 @@ struct uuid {
// Just returns the same pointer that was passed in with the UUID initialised.
// Fails when passed a NULL pointer.
UUID *wapp_uuid_init_uuid4(UUID *uuid);
WUUID *wapp_uuid_init_uuid4(WUUID *uuid);
#ifdef WAPP_PLATFORM_CPP
END_C_LINKAGE