/* Macros */
-#if defined(SILC_WIN32)
+#if defined(WIN32)
#ifndef __FUNCTION__
#define __FUNCTION__ ""
#endif
#endif
+/****d* silcutil/SilcLogAPI/SILC_ENABLE_DEBUG
+ *
+ * NAME
+ *
+ * #define SILC_ENABLE_DEBUG
+ *
+ * DESCRIPTION
+ *
+ * Use this macro to enable the debugging in your application. If
+ * SILC was compiled with debugging enabled, this macro enables it.
+ * Use this macro in your application's main header, or in place where
+ * you need to enable the debugging.
+ *
+ * NOTES
+ *
+ * You still can control the debugging with silc_debug variable, on
+ * whether to actually print the debugging or not. This macro is
+ * used to enable debugging, not to say it is printed or not.
+ *
+ * SOURCE
+ */
+#define SILC_ENABLE_DEBUG \
+ #ifndef SILC_DEBUG \
+ #define SILC_DEBUG 1 \
+ #endif SILC_DEBUG \
+/***/
+
/****d* silcutil/SilcLogAPI/SILC_LOG_INFO
*
* NAME
#ifndef SILCMUTEX_H
#define SILCMUTEX_H
-#if defined(SILC_THREADS)
-
/****s* silcutil/SilcMutexAPI/SilcMutex
*
* NAME
***/
void silc_mutex_unlock(SilcMutex mutex);
-#else
-
-#define SILC_MUTEX_DEFINE(name)
-#define silc_mutex_alloc(mutex) (void)0
-#define silc_mutex_free(mutex) (void)0
-#define silc_mutex_lock(mutex) (void)0
-#define silc_mutex_unlock(mutex) (void)0
-
-#endif /* SILC_THREADS */
-
#endif
***/
char *silc_net_localip(void);
-#if defined(SILC_WIN32)
-
/****f* silcutil/SilcNetAPI/silc_net_win32_init
*
* SYNOPSIS
* FALSE on error. The network will not work if this function returns
* FALSE.
*
+ * NOTES
+ *
+ * This routines is available only on Win32 platform.
+ *
***/
bool silc_net_win32_init(void);
* is usually called when the application is exiting. After calling
* this function the SILC Net API routines will not work anymore.
*
+ * NOTES
+ *
+ * This routines is available only on Win32 platform.
+ *
***/
void silc_net_win32_uninit(void);
#endif
-
-#endif