summaryrefslogtreecommitdiffstats
path: root/src/include/win-mac.h
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-01-30 11:17:35 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-01-30 11:17:35 +0000
commit8280042aae4cbe62a557da76dffff85a20744e67 (patch)
treea6f33929d2c27566d8d4308dfeb7723a12c90496 /src/include/win-mac.h
parent76dda3ed3da237f3bba62ec63933aaed7a4ae80e (diff)
downloadkrb5-8280042aae4cbe62a557da76dffff85a20744e67.tar.gz
krb5-8280042aae4cbe62a557da76dffff85a20744e67.tar.xz
krb5-8280042aae4cbe62a557da76dffff85a20744e67.zip
Microsoft Windows Visual Studio does not define ssize_t
Microsoft defines size_t but not ssize_t. Provide a definition in win-mac.h that follows the style used by Microsoft providing a preprocessor macro SSIZE_T_DEFINED which can be used for conditional definition and testing in case Microsoft decides to add it later. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19123 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/win-mac.h')
-rw-r--r--src/include/win-mac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/win-mac.h b/src/include/win-mac.h
index 4249f0db55..5c08fab391 100644
--- a/src/include/win-mac.h
+++ b/src/include/win-mac.h
@@ -82,6 +82,14 @@ typedef int int32_t;
typedef unsigned __int64 uint64_t;
typedef __int64 int64_t;
#endif
+#ifndef SSIZE_T_DEFINED
+#ifdef _WIN64
+typedef __int64 ssize_t;
+#else
+typedef _W64 int ssize_t;
+#endif
+#define SSIZE_T_DEFINED
+#endif
#endif /* KRB5_SYSTYPES__ */
#define MAXHOSTNAMELEN 512