]> rtime.felk.cvut.cz Git - orte.git/blob - orte/include/orte_all.h
5b1dce5d8e12dfc5edc9a602bc873b384099e3a8
[orte.git] / orte / include / orte_all.h
1 /*
2  *  $Id: orte_all.h,v 0.0.0.1           2003/08/21 
3  *
4  *  AUTHOR: Petr Smolik                 petr.smolik@wo.cz
5  *
6  *  ORTE - OCERA Real-Time Ethernet     http://www.ocera.org/
7  *  --------------------------------------------------------------------
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 2 of the License, or
12  *  (at your option) any later version.
13  *  
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *  
19  */
20
21 #ifndef _ORTE_ALL_H
22 #define _ORTE_ALL_H
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 #ifndef __RTL__
29 #ifdef HAVE_CONFIG_H
30   #define _GNU_SOURCE
31   #define SOCK_BSD
32   #include "config.h"
33 #endif
34 #ifdef HAVE_UNISTD_H
35   #include <unistd.h>
36 #endif
37 #ifdef HAVE_STDIO_H
38   #include <stdio.h>
39 #endif
40 #ifdef HAVE_STDLIB_H
41   #include <stdlib.h>
42 #endif
43 #ifdef HAVE_STRING_H
44   #include <string.h>
45 #endif
46 #ifdef HAVE_SOCKET
47   #include <sys/socket.h>
48 #endif
49 #ifdef HAVE_NETDB_H
50   #include <netdb.h>
51 #endif
52 #ifdef HAVE_NET_IF_H
53   #include <net/if.h>
54 #endif
55 #ifdef HAVE_NETINET_IN_H
56   #include <netinet/in.h>
57 #endif
58 #ifdef HAVE_ARPA_INET_H
59   #include <arpa/inet.h>
60 #endif
61 #ifdef HAVE_FCNTL_H
62   #include <fcntl.h>
63 #endif
64 #ifdef HAVE_SYS_IOCTL_H
65   #include <sys/ioctl.h>
66 #endif
67 #ifdef HAVE_SYS_TIME_H
68   #include <sys/time.h>
69 #endif
70 #ifdef HAVE_PTHREAD_H
71   #include <pthread.h>
72 #endif
73 #ifdef HAVE_SYS_TYPES_H
74   #include <sys/types.h>
75 #endif
76 #ifdef HAVE_BYTESWAP_H
77   #include <byteswap.h>
78 #endif
79 #ifdef HAVE_STDARG_H
80   #include <stdarg.h>
81 #endif
82 #ifdef HAVE_CTYPE_H
83   #include <ctype.h>
84 #endif
85 #ifdef HAVE_WINSOCK2_H
86   #include <winsock2.h>
87 #endif
88 #ifdef HAVE_WS2TCPIP_H
89   #include <ws2tcpip.h>
90 #endif
91 #endif
92
93
94 #ifdef _WIN32
95   #ifndef HAVE_CONFIG_H
96     #include "config.h.undef"
97     #if defined(_MSC_VER) || defined (_OMK_UNIX) 
98       #ifndef inline
99         #define inline _inline
100       #endif
101       #include <stdio.h>
102       #include <stdlib.h>
103       #include <stdarg.h>
104       #include <string.h>
105       #include <winsock2.h>
106       #include <ws2tcpip.h>
107     #endif
108   #endif
109   #include <pthread.h>
110   #include <timeval.h>
111   #include <ew_types.h>
112   #define ioctl ioctlsocket
113   #undef SOCK_BSD
114   #define SOCK_WIN
115 #elif defined __RTL__
116   #include "config.h.undef"
117   #include <rtl.h>
118   #include <posix/pthread.h>
119   #include <posix/time.h>
120   #include <rtl_malloc.h>
121   #include <byteswap.h>
122   #include <udp.h>
123   #include <nic.h>
124   #include <nictab.h>
125   #include <ctype.h>
126   #include <time.h>
127   #include <rtl/compat.h>
128   #include <rtl/rwlock.h>
129   #define SOCK_RTL
130 #elif defined _OMK_UNIX
131   #define _GNU_SOURCE
132   #include "config.h.undef"
133   #include <unistd.h>
134   #include <stdio.h>
135   #include <stdlib.h>
136   #include <string.h>
137   #include <sys/socket.h>
138   #include <netdb.h>
139   #include <net/if.h>
140   #include <netinet/in.h>
141   #include <arpa/inet.h>
142   #include <fcntl.h>
143   #include <sys/ioctl.h>
144   #include <sys/time.h>
145   #include <pthread.h>
146   #include <sys/types.h>
147   #include <byteswap.h>
148   #include <stdarg.h>
149   #include <ctype.h>
150   #define SOCK_BSD
151 #endif
152
153 #ifdef __cplusplus
154 } /* extern "C"*/
155 #endif
156
157 #endif /* _ORTE_ALL_H */