crashoz/uuid_v4

Conflict with UUID defined by rpcdce.h

Closed this issue · 0 comments

I'm testing out uuid_v4 in a project of mine which also uses windows.h, and I encountered a conflict within rpcdce.h, which is included somewhere along the line with windows.h.

The rpcdce.h header includes code which defines UUID: typedef GUID UUID;

This results in a conflict with the UUID namespace defined by uuid_v4.h. As a workaround, renaming the namespace in uuid_v4.h to something more specific like "UUIDV4" resolves the issue.