diff options
Diffstat (limited to 'docs/examples/anyauthput.c')
-rw-r--r-- | docs/examples/anyauthput.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c index 41531f7aa..11c9d3c77 100644 --- a/docs/examples/anyauthput.c +++ b/docs/examples/anyauthput.c @@ -9,10 +9,23 @@ */ #include <stdio.h> -#include <stdint.h> #include <fcntl.h> +#ifdef WIN32 +# include <io.h> +#else +# include <stdint.h> +# include <unistd.h> +#endif +#include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> + +#ifdef _MSC_VER +# ifdef _WIN64 + typedef __int64 intptr_t; +# else + typedef int intptr_t; +# endif +#endif #include <curl/curl.h> |