From: Kevin Wasserman Date: Wed, 6 Jun 2012 22:22:22 +0000 (-0400) Subject: KFW win-mac.h fixes X-Git-Tag: krb5-1.11-alpha1~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a27c56e300990909317630e626ccdd8ae8e7f41;p=thirdparty%2Fkrb5.git KFW win-mac.h fixes kfw: add int16_t, uint16_t typedefs to win-mac.h uint16_t is used in chpw.c include stdlib.h, crtdbg.h in win-mac.h Allows leak-tracking using built-in msvc tools on windows. crtdbg.h needs to come _after_ stdlib.h, but _before_ checking for strdup. Define DEBUG and CRTDBG_MAP_ALLOC for full tracking. Signed-off-by: Kevin Wasserman ticket: 7204 (new) tags: pullup --- diff --git a/src/include/win-mac.h b/src/include/win-mac.h index 53f274af79..2274d8a51d 100644 --- a/src/include/win-mac.h +++ b/src/include/win-mac.h @@ -24,6 +24,10 @@ #include #else /* ! RES_ONLY */ +#include +#ifdef DEBUG +#include +#endif /* To ensure backward compatibility of the ABI use 32-bit time_t on * 32-bit Windows. @@ -76,6 +80,8 @@ typedef unsigned long u_long; /* Not part of sys/types.h on the pc */ typedef unsigned int u_int; typedef unsigned short u_short; typedef unsigned char u_char; +typedef unsigned short uint16_t; +typedef short int16_t; typedef unsigned int uint32_t; typedef int int32_t; #if _INTEGRAL_MAX_BITS >= 64