[PATCH] pathencode: adapt for MS C compiler
Adrian Buehlmann
adrian at cadifra.com
Fri Sep 7 04:18:05 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1347008594 -7200
# Node ID b2b123eb58048847f5961f0c4b69bd4736562ce2
# Parent d23b571de8b73f8c7422765faa25a7bba8f761c9
pathencode: adapt for MS C compiler
diff --git a/mercurial/pathencode.c b/mercurial/pathencode.c
--- a/mercurial/pathencode.c
+++ b/mercurial/pathencode.c
@@ -18,9 +18,17 @@
#include <Python.h>
#include <assert.h>
#include <ctype.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#include <malloc.h>
+
+#ifndef _MSC_VER
+#include <stdint.h>
+#else
+#define inline __inline
+typedef unsigned char uint8_t;
+typedef unsigned __int32 uint32_t;
+#endif
/* state machine for the fast path */
enum path_state {
More information about the Mercurial-devel
mailing list