]> git.ipfire.org Git - people/ms/strongswan.git/blob - lib/liblwres/include/lwres/platform.h.in
- import of strongswan-2.7.0
[people/ms/strongswan.git] / lib / liblwres / include / lwres / platform.h.in
1 /*
2 * Copyright (C) 2000, 2001 Internet Software Consortium.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
9 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
10 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
11 * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
13 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
14 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
15 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */
17
18 /* $Id: platform.h.in,v 1.1 2004/03/15 20:35:25 as Exp $ */
19
20 #ifndef LWRES_PLATFORM_H
21 #define LWRES_PLATFORM_H 1
22
23 /*****
24 ***** Platform-dependent defines.
25 *****/
26
27 /***
28 *** Network.
29 ***/
30
31 /*
32 * Define if this system needs the <netinet/in6.h> header file for IPv6.
33 */
34 @LWRES_PLATFORM_NEEDNETINETIN6H@
35
36 /*
37 * Define if this system needs the <netinet6/in6.h> header file for IPv6.
38 */
39 @LWRES_PLATFORM_NEEDNETINET6IN6H@
40
41 /*
42 * If sockaddrs on this system have an sa_len field, LWRES_PLATFORM_HAVESALEN
43 * will be defined.
44 */
45 @LWRES_PLATFORM_HAVESALEN@
46
47 /*
48 * If this system has the IPv6 structure definitions, LWRES_PLATFORM_HAVEIPV6
49 * will be defined.
50 */
51 @LWRES_PLATFORM_HAVEIPV6@
52
53 /*
54 * If this system is missing in6addr_any, LWRES_PLATFORM_NEEDIN6ADDRANY will
55 * be defined.
56 */
57 @LWRES_PLATFORM_NEEDIN6ADDRANY@
58
59 /*
60 * If this system is missing in6addr_loopback,
61 * LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK will be defined.
62 */
63 @LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK@
64
65 /*
66 * If this system has in_addr6, rather than in6_addr,
67 * LWRES_PLATFORM_HAVEINADDR6 will be defined.
68 */
69 @LWRES_PLATFORM_HAVEINADDR6@
70
71 /*
72 * Defined if unistd.h does not cause fd_set to be delared.
73 */
74 @LWRES_PLATFORM_NEEDSYSSELECTH@
75
76 /*
77 * Used to control how extern data is linked; needed for Win32 platforms.
78 */
79 @LWRES_PLATFORM_USEDECLSPEC@
80
81 #ifndef LWRES_PLATFORM_USEDECLSPEC
82 #define LIBLWRES_EXTERNAL_DATA
83 #else
84 #ifdef LIBLWRES_EXPORTS
85 #define LIBLWRES_EXTERNAL_DATA __declspec(dllexport)
86 #else
87 #define LIBLWRES_EXTERNAL_DATA __declspec(dllimport)
88 #endif
89 #endif
90
91 #endif /* LWRES_PLATFORM_H */