Skip to content

Commit 7609144

Browse files
committed
Properly declare uuid_to_str and uuid_to_hex as static
Without `static` the toolchain might get confused and this might lead to `undefined symbol: uuid_to_hex` errors.
1 parent 1b4af3c commit 7609144

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tohex.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929

30-
void inline
30+
static inline void
3131
uuid_to_str(const char *source, char *dest)
3232
{
3333
HEX_PRELUDE
@@ -44,7 +44,8 @@ uuid_to_str(const char *source, char *dest)
4444
HEX_2_BYTES(source + 14, dest + 32)
4545
}
4646

47-
void inline
47+
48+
static inline void
4849
uuid_to_hex(const char *source, char *dest)
4950
{
5051
HEX_PRELUDE

0 commit comments

Comments
 (0)