only allow uuid.h if openssl is included in parent project

v1
Brett 2023-08-17 12:14:59 -04:00
parent 1e8f431f9e
commit ea986bbc95
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,7 @@
// Created by brett on 15/08/23. // Created by brett on 15/08/23.
// //
#ifndef BLT_UUID_H #if !defined(BLT_UUID_H) && defined(__has_include) && __has_include(<openssl/sha.h>)
#define BLT_UUID_H #define BLT_UUID_H
#include <string> #include <string>
@ -145,7 +145,6 @@ namespace blt::uuid
cpy[0] = data[i]; cpy[0] = data[i];
cpy[1] = data[i + 1]; cpy[1] = data[i + 1];
uuid.str[i / 2] = hex2byte(cpy); uuid.str[i / 2] = hex2byte(cpy);
BLT_INFO("i: %d, %d %d, %d, %d", i/2, cpy[0], cpy[1], uuid.str[i/2], hex2byte(cpy));
} }
} else } else
throw malformed_uuid_exception("UUID is expected as a string of bytes xxxxxxxx or in uuid format 8-4-4-4-12"); throw malformed_uuid_exception("UUID is expected as a string of bytes xxxxxxxx or in uuid format 8-4-4-4-12");