silcruntime.h: include stdarg.h by default
[runtime.git] / lib / silcutil / silcruntime.h.in
index 1c8ad88661ecdd1d4cce17dcea27cdbf28461d36..e553ea15c186004804b3af438c41b84cb904855d 100644 (file)
@@ -51,6 +51,8 @@
    configured/compiled. */
 @__SILC_HAVE_PTHREAD@
 @__SILC_ENABLE_DEBUG@
+@__SILC_ENABLE_STACKTRACE@
+@__SILC_VA_COPY@
 
 /* Types */
 #define SILC_SIZEOF_LONG_LONG @SILC_SIZEOF_LONG_LONG@
@@ -99,12 +101,22 @@ extern "C" {
 #include <silcsymbian.h>
 #endif
 
-#if defined(HAVE_SILCDEFS_H)
+#ifndef DLLAPI
+#define DLLAPI
+#endif
+
+/* We except all systems to have these include files */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdarg.h>
+
+#if defined(HAVE_RUNTIMEDEFS_H)
 
 /* Automatically generated configuration header.  These are included only
    when the SILC Runtime Toolkit itself is compiled. */
 #ifndef SILC_SYMBIAN
-#include "silcdefs.h"
+#include "runtimedefs.h"
 #else
 #include "../../symbian/silcdefs.h"
 #endif /* SILC_SYMBIAN */
@@ -168,11 +180,27 @@ extern "C" {
 #define SILC_ALIGNMENT SILC_SIZEOF_VOID_P
 #endif /* SILC_ALIGNMENT */
 
-#endif /* HAVE_SILCDEFS_H */
+#endif /* HAVE_RUNTIMEDEFS_H */
+
+/* Feature defines */
+#ifdef __SILC_HAVE_PTHREAD
+#undef SILC_THREADS
+#define SILC_THREADS 1
+#endif /* __SILC_HAVE_PTHREAD */
+
+#ifdef __SILC_ENABLE_DEBUG
+#undef SILC_DEBUG
+#define SILC_DEBUG 1
+#endif /* __SILC_ENABLE_DEBUG */
+
+#ifdef __SILC_ENABLE_STACKTRACE
+#undef SILC_STACKTRACE
+#define SILC_STACKTRACE 1
+#endif /* __SILC_ENABLE_STACKTRACE */
 
 /* SILC Runtime Toolkit includes */
-#include <silcerrno.h>
 #include <silctypes.h>
+#include <silcerrno.h>
 #include <silcbitops.h>
 #include <silcmutex.h>
 #include <silcatomic.h>
@@ -181,6 +209,7 @@ extern "C" {
 #include <silcmemory.h>
 #include <silclist.h>
 #include <silcdlist.h>
+#include <silctree.h>
 #include <silcsnprintf.h>
 #include <silctime.h>
 #include <silctimer.h>
@@ -212,6 +241,11 @@ extern "C" {
 #include <silcfdstream.h>
 #include <silcmime.h>
 #include <silcrand.h>
+#include <silcbufferstream.h>
+#include <silclocalnetstream.h>
+#include <silcxml.h>
+#include <silchttpserver.h>
+#include <silchttpphp.h>
 
 /* Runtime Toolkit API */