The R Project SVN R

Rev

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

Rev 71050 Rev 71071
Line 17... Line 17...
17
 *  https://www.R-project.org/Licenses/
17
 *  https://www.R-project.org/Licenses/
18
 */
18
 */
19
 
19
 
20
/* 
20
/* 
21
   For use by alternative front-ends and packages which need to share
21
   For use by alternative front-ends and packages which need to share
22
   the R event loop.
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
 
-
 
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).
25
 */
28
 */
26
 
29
 
27
#ifndef R_EXT_EVENTLOOP_H
30
#ifndef R_EXT_EVENTLOOP_H
28
#define R_EXT_EVENTLOOP_H
31
#define R_EXT_EVENTLOOP_H
29
 
32
 
30
#ifndef NO_C_HEADERS
33
#ifndef NO_C_HEADERS
31
/* configure required this header */
34
# ifdef HAVE_SYS_SELECT_H
32
# include <sys/select.h>  /* also for fd_set according to recent POSIX */
35
#  include <sys/select.h> /* for fd_set, select according to POSIX 2004 */
-
 
36
# endif
-
 
37
# ifdef HAVE_SYS_TIME_H
-
 
38
#  include <sys/time.h>	 /* according to earlier POSIX and perhaps HP-UX */
-
 
39
# endif
33
/* NOTE: Needed at least on FreeBSD so that fd_set is defined. */
40
/* NOTE: At one time needed on FreeBSD so that fd_set is defined. */
34
# include <sys/types.h>
41
# include <sys/types.h>
35
#endif
42
#endif
36
 
43
 
37
#ifdef  __cplusplus
44
#ifdef  __cplusplus
38
extern "C" {
45
extern "C" {