summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-03 03:07:51 +0000
committerTim Potter <tpot@samba.org>2002-01-03 03:07:51 +0000
commitaae8cc6e450a6a0b33045ed1e6d49f8eebeb48b2 (patch)
tree3611e7c6519b5daa0a6be010e70cd42df347c23c
parentee6d33a8db2afc43c8784f2e43572ae8959126e5 (diff)
downloadsamba-aae8cc6e450a6a0b33045ed1e6d49f8eebeb48b2.tar.gz
Welcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE to
stop smb_macros.h and tdb.h from fighting with each other. I tried to rearrange the #include file order but that breaks other stuff. Aargh!
-rw-r--r--source/include/smb_macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h
index 44b8c26da94..de6f1dc3baf 100644
--- a/source/include/smb_macros.h
+++ b/source/include/smb_macros.h
@@ -38,7 +38,10 @@
#define IS_DOS_HIDDEN(test_mode) (((test_mode) & aHIDDEN) != 0)
/* free memory if the pointer is valid and zero the pointer */
+
+#ifndef SAFE_FREE /* Oh no this is also defined in tdb.h */
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
+#endif
/* zero a structure */
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))