Skip to content

Commit

Permalink
fix(odr): Fix ODR violation for libuuid symbols
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Bleis <michael.bleis@aracom.de>
  • Loading branch information
mbleis authored and icraggs committed Sep 5, 2024
1 parent 24b3439 commit 024ddee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/WebSocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#define HTTP_PROTOCOL(x) x ? "https" : "http"

#if !(defined(_WIN32) || defined(_WIN64))
#if defined(LIBUUID)
#if defined(USE_LIBUUID)
#include <uuid/uuid.h>
#else /* if defined(USE_LIBUUID) */
#include <limits.h>
Expand All @@ -103,7 +103,7 @@ typedef unsigned char uuid_t[16];
* @brief generates a uuid, compatible with RFC 4122, version 4 (random)
* @note Uses a very insecure algorithm but no external dependencies
*/
void uuid_generate( uuid_t out )
static void uuid_generate( uuid_t out )
{
#if defined(OPENSSL)
int rc = RAND_bytes( out, sizeof(uuid_t));
Expand All @@ -121,7 +121,7 @@ void uuid_generate( uuid_t out )
}

/** @brief converts a uuid to a string */
void uuid_unparse( uuid_t uu, char *out )
static void uuid_unparse( uuid_t uu, char *out )
{
int i;
for ( i = 0; i < 16; ++i )
Expand All @@ -135,7 +135,7 @@ void uuid_unparse( uuid_t uu, char *out )
}
*out = '\0';
}
#endif /* else if defined(LIBUUID) */
#endif /* else if defined(USE_LIBUUID) */
#endif /* if !(defined(_WIN32) || defined(_WIN64)) */

#include "Heap.h"
Expand Down

0 comments on commit 024ddee

Please sign in to comment.