uuid lib is now default
This commit is contained in:
parent
aaf06f57e2
commit
25b1c76e62
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,7 @@
|
|||
CFLAGS+=-I./include/ -fPIC -g -Wall
|
||||
CFLAGS += -I./include/ -fPIC -g -Wall
|
||||
|
||||
# Available Flags:
|
||||
# _NO_UUID_LIB - compile without uuid lib
|
||||
|
||||
LIB_DIR=./lib
|
||||
OBJ_LIB=$(LIB_DIR)/libsml.o
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef SML_WITH_UUID_LIB
|
||||
#ifndef _NO_UUID_LIB
|
||||
#include <uuid/uuid.h>
|
||||
#endif
|
||||
|
||||
|
@ -105,7 +105,7 @@ void sml_octet_string_write(octet_string *str, sml_buffer *buf) {
|
|||
}
|
||||
|
||||
octet_string *sml_octet_string_generate_uuid() {
|
||||
#ifdef SML_WITH_UUID_LIB
|
||||
#ifndef _NO_UUID_LIB
|
||||
uuid_t uuid;
|
||||
uuid_generate(uuid);
|
||||
return sml_octet_string_init(uuid, 16);
|
||||
|
|
Loading…
Add table
Reference in a new issue