Browse code

bb#1895

aCaB authored on 2010/03/23 08:09:52
Showing 1 changed files
... ...
@@ -11,6 +11,11 @@
11 11
 #include <Ws2tcpip.h>
12 12
 #include <process.h>
13 13
 
14
+#ifdef __cplusplus
15
+extern "C"
16
+{
17
+#endif
18
+
14 19
 #include "gettimeofday.h"
15 20
 #include "snprintf.h"
16 21
 #include "net.h"
... ...
@@ -18,7 +23,9 @@
18 18
 #include "w32_stat.h"
19 19
 #include "random.h"
20 20
 
21
-#ifndef __cplusplus
21
+#ifdef __cplusplus
22
+}
23
+#else
22 24
 typedef unsigned short mode_t;
23 25
 #endif
24 26