Author: tkreuzer
Date: Mon Dec 22 14:25:44 2008
New Revision: 38276
URL:
http://svn.reactos.org/svn/reactos?rev=38276&view=rev
Log:
Add ssize_t to rosdhcp.h, as ms crt headers (and so our future crt headers) don't
define it.
Modified:
trunk/reactos/base/services/dhcp/include/rosdhcp.h
Modified: trunk/reactos/base/services/dhcp/include/rosdhcp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/include…
==============================================================================
--- trunk/reactos/base/services/dhcp/include/rosdhcp.h [iso-8859-1] (original)
+++ trunk/reactos/base/services/dhcp/include/rosdhcp.h [iso-8859-1] Mon Dec 22 14:25:44
2008
@@ -27,6 +27,20 @@
#define DHCP_BACKOFF_MAX 300
#define _PATH_DHCLIENT_PID
"\\systemroot\\system32\\drivers\\etc\\dhclient.pid"
typedef void *VOIDPTR;
+
+#ifndef _SSIZE_T_DEFINED
+#define _SSIZE_T_DEFINED
+#undef ssize_t
+#ifdef _WIN64
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
+ typedef int ssize_t __attribute__ ((mode (DI)));
+#else
+ typedef __int64 ssize_t;
+#endif
+#else
+ typedef int ssize_t;
+#endif
+#endif
typedef u_int32_t uintTIME;
#define TIME uintTIME