2 * Copyright (C) 2004, 2005, 2007-2009 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2001 Internet Software Consortium.
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
18 /* $Id: platform.h,v 1.19 2009/09/29 23:48:04 tbox Exp $ */
20 #ifndef ISC_PLATFORM_H
21 #define ISC_PLATFORM_H 1
24 ***** Platform-dependent defines.
27 #define ISC_PLATFORM_USETHREADS
34 #define ISC_PLATFORM_HAVEIPV6
35 #define ISC_PLATFORM_HAVEIN6PKTINFO
36 #define ISC_PLATFORM_HAVESCOPEID
38 #define ISC_PLATFORM_NEEDPORTT
40 #define ISC_PLATFORM_NEEDNTOP
41 #define ISC_PLATFORM_NEEDPTON
43 #ifndef ISC_PLATFORM_QUADFORMAT
44 #define ISC_PLATFORM_QUADFORMAT "I64"
47 #define ISC_PLATFORM_NEEDSTRSEP
48 #define ISC_PLATFORM_NEEDSTRLCPY
49 #define ISC_PLATFORM_NEEDSTRLCAT
50 #define ISC_PLATFORM_NEEDSTRLCPY
53 * Used to control how extern data is linked; needed for Win32 platforms.
55 #define ISC_PLATFORM_USEDECLSPEC 1
58 * Define this here for now as winsock2.h defines h_errno
59 * and we don't want to redeclare it.
61 #define ISC_PLATFORM_NONSTDHERRNO
64 * Define if the platform has <sys/un.h>.
66 #undef ISC_PLATFORM_HAVESYSUNH
69 * Defines for the noreturn attribute.
71 #define ISC_PLATFORM_NORETURN_PRE __declspec(noreturn)
72 #define ISC_PLATFORM_NORETURN_POST
75 * Set up a macro for importing and exporting from the DLL
77 * To build static libraries on win32, #define ISC_STATIC_WIN
79 #ifndef ISC_STATIC_WIN
80 #define ISC_DLLEXP __declspec(dllexport)
81 #define ISC_DLLIMP __declspec(dllimport)
88 #define LIBISC_EXTERNAL_DATA ISC_DLLEXP
90 #define LIBISC_EXTERNAL_DATA ISC_DLLIMP
93 #ifdef LIBISCCFG_EXPORTS
94 #define LIBISCCFG_EXTERNAL_DATA ISC_DLLEXP
96 #define LIBISCCFG_EXTERNAL_DATA ISC_DLLIMP
99 #ifdef LIBISCCC_EXPORTS
100 #define LIBISCCC_EXTERNAL_DATA ISC_DLLEXP
102 #define LIBISCCC_EXTERNAL_DATA ISC_DLLIMP
105 #ifdef LIBDNS_EXPORTS
106 #define LIBDNS_EXTERNAL_DATA ISC_DLLEXP
108 #define LIBDNS_EXTERNAL_DATA ISC_DLLIMP
111 #ifdef LIBBIND9_EXPORTS
112 #define LIBBIND9_EXTERNAL_DATA ISC_DLLEXP
114 #define LIBBIND9_EXTERNAL_DATA ISC_DLLIMP
117 #endif /* ISC_PLATFORM_H */