The R Project SVN R

Rev

Rev 71289 | Rev 71657 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71289 Rev 71371
Line 22... Line 22...
22
   the R event loop (on Unix-alikes).
22
   the R event loop (on Unix-alikes).
23
 
23
 
24
   Not part of the API and subject to change without notice.
24
   Not part of the API and subject to change without notice.
25
 
25
 
26
   NB: HAVE_SYS_SELECT_H should be checked and defined before this is
26
   NB: HAVE_SYS_SELECT_H should be checked and defined before this is
27
   included (or <sys/select.h> included if NO_C_HEADERS is defined).
27
   included.
28
 */
28
 */
29
 
29
 
30
#ifndef R_EXT_EVENTLOOP_H
30
#ifndef R_EXT_EVENTLOOP_H
31
#define R_EXT_EVENTLOOP_H
31
#define R_EXT_EVENTLOOP_H
32
 
32
 
33
#ifndef NO_C_HEADERS
-
 
34
# ifdef HAVE_SYS_SELECT_H
33
#ifdef HAVE_SYS_SELECT_H
35
#  include <sys/select.h> /* for fd_set, select according to POSIX 2004 */
34
# include <sys/select.h> /* for fd_set, select according to POSIX 2004 */
36
# endif
35
#endif
37
# ifdef HAVE_SYS_TIME_H
36
#ifdef HAVE_SYS_TIME_H
38
#  include <sys/time.h>	 /* ... according to earlier POSIX and perhaps HP-UX */
37
# include <sys/time.h>	 /* ... according to earlier POSIX and perhaps HP-UX */
39
# endif
-
 
40
/* NOTE: At one time needed on FreeBSD so that fd_set is defined. */
-
 
41
# include <sys/types.h>
-
 
42
#else
-
 
43
#warning "use of NO_C_HEADERS is deprecated"
-
 
44
#endif
38
#endif
-
 
39
/* NOTE: At one time needed on FreeBSD so that fd_set is defined. */
-
 
40
#include <sys/types.h>
45
 
41
 
46
#ifdef  __cplusplus
42
#ifdef  __cplusplus
47
extern "C" {
43
extern "C" {
48
#endif
44
#endif
49
 
45