Mercurial > gnulib
comparison lib/sys_select.in.h @ 30230:d0e994df59ca
Make the headers usable in C++.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 29 Sep 2008 11:37:15 +0200 |
parents | 9ecf84bb4ac5 |
children | 142140ec3db8 |
comparison
equal
deleted
inserted
replaced
30229:7e9bec4f5cc2 | 30230:d0e994df59ca |
---|---|
38 /* A platform that lacks <sys/select.h>. */ | 38 /* A platform that lacks <sys/select.h>. */ |
39 | 39 |
40 # include <sys/socket.h> | 40 # include <sys/socket.h> |
41 | 41 |
42 # if @HAVE_WINSOCK2_H@ | 42 # if @HAVE_WINSOCK2_H@ |
43 | |
44 # ifdef __cplusplus | |
45 extern "C" { | |
46 # endif | |
47 | |
43 # undef select | 48 # undef select |
44 # define select rpl_select | 49 # define select rpl_select |
50 extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *); | |
45 | 51 |
46 extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *); | 52 # ifdef __cplusplus |
53 } | |
54 # endif | |
55 | |
47 # endif | 56 # endif |
48 | 57 |
49 #endif | 58 #endif |
50 | 59 |
51 #endif /* _GL_SYS_SELECT_H */ | 60 #endif /* _GL_SYS_SELECT_H */ |