From 25b1c76e621b0f08ec2c9eaf1fbc2a84dbef0ad2 Mon Sep 17 00:00:00 2001 From: Juri Glass Date: Thu, 16 Jun 2011 17:44:27 +0200 Subject: [PATCH] uuid lib is now default --- sml/Makefile | 5 ++++- sml/src/sml_octet_string.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sml/Makefile b/sml/Makefile index fdbe80f..bb485ad 100644 --- a/sml/Makefile +++ b/sml/Makefile @@ -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 diff --git a/sml/src/sml_octet_string.c b/sml/src/sml_octet_string.c index f223891..4735560 100644 --- a/sml/src/sml_octet_string.c +++ b/sml/src/sml_octet_string.c @@ -21,7 +21,7 @@ #include -#ifdef SML_WITH_UUID_LIB +#ifndef _NO_UUID_LIB #include #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);