aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/anyauthput.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-31 12:12:35 +0000
committerYang Tse <yangsita@gmail.com>2008-08-31 12:12:35 +0000
commit79ffbf7fe1af3fb3d6a4a1ad31eeaaecb1dbd8e6 (patch)
treef32c0a37b801eba76087d9899cf0885d7edaf8e4 /docs/examples/anyauthput.c
parent4f0d286d2c24fd0104e4769f190277b39dc50474 (diff)
MSVC adjustment
Diffstat (limited to 'docs/examples/anyauthput.c')
-rw-r--r--docs/examples/anyauthput.c17
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>