curl-library
Re: yangtse: curl/docs/examples 10-at-a-time.c, 1.7, 1.8 anyauthput.c, 1.6, 1.7 fopen.c, 1.11, 1.12 ftpuploadresume.c, 1.4, 1.5
Date: Mon, 1 Sep 2008 19:34:57 +0200
2008/9/1, Gisle Vanem wrote:
> > What was committed to CVS is appropriate 'as is', no need to change
> > anything. What rules here is the sizeof(void *) which under _WIN64 is
> > 8 and under _WIN32 is 4.
> >
>
> I know. Hence my suggestion to use 'ULONG_PTR' to reduce the
> #ifdef clutter.
'long' is still 4 bytes wide under _WIN64 even when void pointers are
8 bytes wide. So maybe what you are suggesting is doing the following
?
Index: docs/examples/anyauthput.c
===================================================================
RCS file: /cvsroot/curl/curl/docs/examples/anyauthput.c,v
retrieving revision 1.7
diff -u -r1.7 anyauthput.c
--- docs/examples/anyauthput.c 31 Aug 2008 12:12:35 -0000 1.7
+++ docs/examples/anyauthput.c 1 Sep 2008 17:30:35 -0000
@@ -20,11 +20,7 @@
#include <sys/stat.h>
#ifdef _MSC_VER
-# ifdef _WIN64
- typedef __int64 intptr_t;
-# else
- typedef int intptr_t;
-# endif
+# define INT_PTR intptr_t
#endif
#include <curl/curl.h>
-- -=[Yang]=-Received on 2008-09-01