Updated guid.cc to deal with minor change in libuuid
This commit is contained in:
2
NEWS
2
NEWS
@@ -6,6 +6,8 @@
|
|||||||
(commit 740, which is pre-release as I type; presumably version 1.19 and
|
(commit 740, which is pre-release as I type; presumably version 1.19 and
|
||||||
later once released).
|
later once released).
|
||||||
|
|
||||||
|
- Updated guid.cc to deal with minor change in libuuid.
|
||||||
|
|
||||||
1.0.9 (4/14/2022):
|
1.0.9 (4/14/2022):
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|||||||
2
guid.cc
2
guid.cc
@@ -141,7 +141,7 @@ void GUIDData::Zero(void) {
|
|||||||
void GUIDData::Randomize(void) {
|
void GUIDData::Randomize(void) {
|
||||||
int i, uuidGenerated = 0;
|
int i, uuidGenerated = 0;
|
||||||
|
|
||||||
#ifdef _UUID_UUID_H
|
#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)
|
||||||
uuid_generate(uuidData);
|
uuid_generate(uuidData);
|
||||||
ReverseBytes(&uuidData[0], 4);
|
ReverseBytes(&uuidData[0], 4);
|
||||||
ReverseBytes(&uuidData[4], 2);
|
ReverseBytes(&uuidData[4], 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user