X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcmemory.h;h=149e8c9044d9f72045ccc78dd82818507eefb7ee;hb=c257b555225193e54d85daf541d29578b3c93882;hp=691cc698295db0cd921877c2dd0273224dc6328c;hpb=67ead87b5688a88f997ed02252625e1ebb882de4;p=silc.git diff --git a/lib/silcutil/silcmemory.h b/lib/silcutil/silcmemory.h index 691cc698..149e8c90 100644 --- a/lib/silcutil/silcmemory.h +++ b/lib/silcutil/silcmemory.h @@ -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 /* SILC_DIST_TOOLKIT */ + +#include "stacktrace.h" +#endif /* SILC_STACKTRACE */ + #endif /* SILCMEMORY_H */