From e1117ae4a1bfc0bb644432b41ef90fead9a731cb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 5 Jan 1998 19:13:15 +0000 Subject: NT version compiles --- include/types.h | 8 ++++---- include/util.h | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/types.h b/include/types.h index 0a2d8752f..be217df69 100644 --- a/include/types.h +++ b/include/types.h @@ -44,9 +44,9 @@ #ifndef HAVE_U16_TYPEDEF #undef u16 /* maybe there is a macro with this name */ - #if SIZEOF_UNSIGNED_INT == 2 + #if SIZEOF_UNSIGNED_INT == 16 typedef unsigned int u16; - #elif SIZEOF_UNSIGNED_SHORT == 2 + #elif SIZEOF_UNSIGNED_SHORT == 16 typedef unsigned short u16; #else #error no typedef for u16 @@ -56,9 +56,9 @@ #ifndef HAVE_U32_TYPEDEF #undef u32 /* maybe there is a macro with this name */ - #if SIZEOF_UNSIGNED_INT == 4 + #if SIZEOF_UNSIGNED_INT == 32 typedef unsigned long u32; - #elif SIZEOF_UNSIGNED_LONG == 4 + #elif SIZEOF_UNSIGNED_LONG == 32 typedef unsigned int u32; #else #error no typedef for u32 diff --git a/include/util.h b/include/util.h index c32f74a70..46f337955 100644 --- a/include/util.h +++ b/include/util.h @@ -93,6 +93,9 @@ void free_strlist( STRLIST sl ); #define FREE_STRLIST(a) do { free_strlist((a)); (a) = NULL ; } while(0) char *memistr( char *buf, size_t buflen, const char *sub ); #define stricmp(a,b) strcasecmp((a),(b)) +#ifndef HAVE_STPCPY +char *stpcpy(char *a,const char *b); +#endif /******** some macros ************/ -- cgit v1.2.3