diff libpurple/win32/libc_interface.h @ 22528:322b92e28005

Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 24 Mar 2008 16:11:21 +0000
parents 6e0c99e134c2
children 5e6ab03225cc
line wrap: on
line diff
--- a/libpurple/win32/libc_interface.h	Mon Mar 24 07:14:29 2008 +0000
+++ b/libpurple/win32/libc_interface.h	Mon Mar 24 16:11:21 2008 +0000
@@ -29,6 +29,10 @@
 #include "libc_internal.h"
 #include <glib.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
 #ifdef _MSC_VER
 #define S_IRUSR S_IREAD
 #define S_IWUSR S_IWRITE
@@ -98,6 +102,8 @@
 wpurple_strerror( errno )
 #define strerror( errornum ) \
 wpurple_strerror( errornum )
+#define g_strerror( errornum ) \
+wpurple_strerror( errornum )
 
 /* unistd.h */
 #define read( fd, buf, buflen ) \
@@ -153,4 +159,8 @@
 /* helper for purple_utf8_strftime() by way of purple_internal_strftime() in src/util.c */
 const char *wpurple_get_timezone_abbreviation(const struct tm *tm);
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _LIBC_INTERFACE_H_ */