diff --git a/src/sdp-xml.c b/src/sdp-xml.c
index 262b8e7..80f180e 100644
--- a/src/sdp-xml.c
+++ b/src/sdp-xml.c
#define DBG(...) (void)(0)
#define error(...) (void)(0)
+#define SDP_XML_ENCODING_NORMAL 0
+#define SDP_XML_ENCODING_HEX 1
+
#define STRBUFSIZE 1024
#define MAXINDENT 64
diff --git a/src/sdp-xml.h b/src/sdp-xml.h
index d393f94..d6a2f73 100644
--- a/src/sdp-xml.h
+++ b/src/sdp-xml.h
#include <bluetooth/sdp.h>
-#define SDP_XML_ENCODING_NORMAL 0
-#define SDP_XML_ENCODING_HEX 1
-
void convert_sdp_record_to_xml(sdp_record_t *rec,
void *user_data, void (*append_func) (void *, const char *));