~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/include/win-mac.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-10-30 10:28:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061030102853-x7v876vw4af46v0m
Tags: 1.4.4-3ubuntu1
* Merge with Debian; only Ubuntu change:
  - src/include/k5-thread.h: Define__USE_GNU when #include'ing pthread.h to
    fix FTBFS (from 1.4.3-9ubuntu1).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include <limits.h>
34
34
 
35
35
#ifndef SIZE_MAX    /* in case Microsoft defines max size of size_t */
 
36
#ifdef  MAX_SIZE    /* Microsoft defines MAX_SIZE as max size of size_t */
 
37
#define SIZE_MAX MAX_SIZE
 
38
#else
36
39
#define SIZE_MAX UINT_MAX
37
40
#endif
 
41
#endif
 
42
 
 
43
/* To ensure backward compatibility of the ABI use 32-bit time_t on 
 
44
 * 32-bit Windows. 
 
45
 */
 
46
#ifdef _KRB5_INT_H
 
47
#ifdef KRB5_GENERAL__
 
48
#error krb5.h included before k5-int.h
 
49
#endif /* KRB5_GENERAL__ */
 
50
#if _INTEGRAL_MAX_BITS >= 64 && _MSC_VER >= 1400 && !defined(_WIN64) && !defined(_USE_32BIT_TIME_T)
 
51
#if defined(_TIME_T_DEFINED) || defined(_INC_IO) || defined(_INC_TIME) || defined(_INC_WCHAR)
 
52
#error time_t has been defined as a 64-bit integer which is incompatible with Kerberos on this platform.
 
53
#endif /* _TIME_T_DEFINED */
 
54
#define _USE_32BIT_TIME_T
 
55
#endif 
 
56
#endif
38
57
 
39
58
#ifndef KRB5_CALLCONV
40
59
#  define KRB5_CALLCONV __stdcall
53
72
#ifndef KRB5_SYSTYPES__
54
73
#define KRB5_SYSTYPES__
55
74
#include <sys/types.h>
56
 
typedef unsigned long   u_long;      /* Not part of sys/types.h on the pc */
57
 
typedef unsigned int    u_int;
58
 
typedef unsigned short  u_short;
59
 
typedef unsigned char   u_char;
60
 
typedef unsigned int    uint32_t;
61
 
typedef int             int32_t;
 
75
typedef unsigned long    u_long;      /* Not part of sys/types.h on the pc */
 
76
typedef unsigned int     u_int;
 
77
typedef unsigned short   u_short;
 
78
typedef unsigned char    u_char;
 
79
typedef unsigned int     uint32_t;
 
80
typedef int              int32_t;
 
81
#if _INTEGRAL_MAX_BITS >= 64
 
82
typedef unsigned __int64 uint64_t;
 
83
typedef __int64          int64_t;
 
84
#endif
62
85
#endif /* KRB5_SYSTYPES__ */
63
86
 
64
87
#define MAXHOSTNAMELEN  512
72
95
#define HAVE_SRAND
73
96
#define HAVE_ERRNO
74
97
#define HAVE_STRDUP
 
98
#define HAVE_GETADDRINFO
 
99
#define HAVE_GETNAMEINFO
75
100
#define NO_USERID
76
101
#define NO_PASSWORD
77
102
#define HAVE_STRERROR