~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to ports/winnt/include/isc/platform.h

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 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,v 1.7 2001/11/19 22:32:04 gson Exp $ */
 
19
 
 
20
#ifndef ISC_PLATFORM_H
 
21
#define ISC_PLATFORM_H 1
 
22
 
 
23
/*****
 
24
 ***** Platform-dependent defines.
 
25
 *****/
 
26
 
 
27
#define ISC_PLATFORM_USETHREADS
 
28
 
 
29
/***
 
30
 *** Network.
 
31
 ***/
 
32
 
 
33
/*
 
34
 * This should not be defined yet until we can support IPV6
 
35
 * on Windows Platforms.
 
36
 *
 
37
#define ISC_PLATFORM_HAVEIPV6
 
38
*/
 
39
#define ISC_PLATFORM_NEEDPORTT
 
40
#undef MSG_TRUNC
 
41
#define ISC_PLATFORM_NEEDNTOP
 
42
#define ISC_PLATFORM_NEEDPTON
 
43
#define ISC_PLATFORM_NEEDATON
 
44
 
 
45
#define ISC_PLATFORM_QUADFORMAT "I64"
 
46
 
 
47
#define ISC_PLATFORM_NEEDSTRSEP
 
48
 
 
49
/*
 
50
 * Used to control how extern data is linked; needed for Win32 platforms.
 
51
 */
 
52
#define ISC_PLATFORM_USEDECLSPEC 1
 
53
 
 
54
/*
 
55
 * Define this here for now as winsock2.h defines h_errno
 
56
 * and we don't want to redeclare it.
 
57
 */
 
58
#define ISC_PLATFORM_NONSTDHERRNO
 
59
 /*
 
60
 * Set up a macro for importing and exporting from the DLL
 
61
 */
 
62
 
 
63
#define LIBISC_EXTERNAL_DATA 
 
64
#if 0
 
65
#ifdef LIBISC_EXPORTS
 
66
#define LIBISC_EXTERNAL_DATA __declspec(dllexport)
 
67
#else
 
68
#define LIBISC_EXTERNAL_DATA __declspec(dllimport) 
 
69
#endif
 
70
 
 
71
#ifdef LIBISCCFG_EXPORTS
 
72
#define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
 
73
#else
 
74
#define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport) 
 
75
#endif
 
76
 
 
77
#ifdef LIBISCCC_EXPORTS
 
78
#define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
 
79
#else
 
80
#define LIBISCCC_EXTERNAL_DATA __declspec(dllimport) 
 
81
#endif
 
82
 
 
83
#ifdef LIBDNS_EXPORTS
 
84
#define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
 
85
#else
 
86
#define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
 
87
#endif
 
88
 
 
89
#ifdef LIBBIND9_EXPORTS
 
90
#define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
 
91
#else
 
92
#define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
 
93
#endif
 
94
 
 
95
#endif /* if 0 */
 
96
 
 
97
#endif /* ISC_PLATFORM_H */