aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-01-27 20:10:49 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-01-27 20:10:49 +0000
commit7a36c4333203a54b93d1295a834462761d88348e (patch)
tree7f1e7a436d8426909dcd2314625e50ac0a7eb8e0
parentUpdated configure.ac to work on MinGW. (diff)
downloadopenvpn-7a36c4333203a54b93d1295a834462761d88348e.tar.xz
Updated common.h types for _WIN64.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3902 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r--common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.h b/common.h
index 59b31b3..bc38699 100644
--- a/common.h
+++ b/common.h
@@ -53,14 +53,22 @@ typedef int interval_t;
/*
* Printf formats for special types
*/
+#ifdef _WIN64
+#define ptr_format "0x%I64x"
+#else
#define ptr_format "0x%08lx"
+#endif
#define time_format "%lu"
#define fragment_header_format "0x%08x"
/* these are used to cast the arguments
* and MUST match the formats above */
typedef unsigned long time_type;
+#ifdef _WIN64
+typedef unsigned long long ptr_type;
+#else
typedef unsigned long ptr_type;
+#endif
/* the --client-config-dir default file */
#define CCD_DEFAULT "DEFAULT"