Fixed topic annoucning, server signoff handling, added -D option,
[silc.git] / lib / silcutil / silcmemory.h
index 691cc698295db0cd921877c2dd0273224dc6328c..6c213f7a4b1ce73836b8605457e56dfb383afec3 100644 (file)
@@ -35,6 +35,8 @@
 
 /* Prototypes */
 
+#ifndef SILC_STACKTRACE
+
 /****f* silcutil/SilcMemoryAPI/silc_malloc
  *
  * SYNOPSIS
@@ -117,4 +119,12 @@ void silc_free(void *ptr);
  ***/
 void *silc_memdup(const void *ptr, size_t size);
 
+#else
+#ifndef SILC_DIST_TOOLKIT
+#error "The stack trace is not supported in this distribution"
+#endif
+
+#include "stacktrace.h"
+#endif /* SILC_STACKTRACE */
+
 #endif /* SILCMEMORY_H */