diff lib/sys_select.in.h @ 10539:affb655993ea

Make the headers usable in C++.
author Bruno Haible <bruno@clisp.org>
date Mon, 29 Sep 2008 11:37:15 +0200
parents 5fc74f43b3d6
children 142140ec3db8
line wrap: on
line diff
--- a/lib/sys_select.in.h	Mon Sep 29 11:36:12 2008 +0200
+++ b/lib/sys_select.in.h	Mon Sep 29 11:37:15 2008 +0200
@@ -40,10 +40,19 @@
 # include <sys/socket.h>
 
 # if @HAVE_WINSOCK2_H@
+
+#  ifdef __cplusplus
+extern "C" {
+#  endif
+
 #  undef select
 #  define select		rpl_select
+extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
 
-extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
+#  ifdef __cplusplus
+}
+#  endif
+
 # endif
 
 #endif