comparison mercurial/bdiff_module.c @ 30170:15635d8b17e0

bdiff: include util.h Without this, IS_PY3K isn't define and the preprocessor uses the incorrect module loading code, causing the module fail to load at run-time. After this patch, all our C extensions (except for watchman's) appear to import correctly in Python 3!
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 13 Oct 2016 13:27:14 +0200
parents 9631ff5ebbeb
children 7c0c722d568d
comparison
equal deleted inserted replaced
30169:5f7151e6de85 30170:15635d8b17e0
15 #include <string.h> 15 #include <string.h>
16 #include <limits.h> 16 #include <limits.h>
17 17
18 #include "bdiff.h" 18 #include "bdiff.h"
19 #include "bitmanipulation.h" 19 #include "bitmanipulation.h"
20 #include "util.h"
20 21
21 22
22 static PyObject *blocks(PyObject *self, PyObject *args) 23 static PyObject *blocks(PyObject *self, PyObject *args)
23 { 24 {
24 PyObject *sa, *sb, *rl = NULL, *m; 25 PyObject *sa, *sb, *rl = NULL, *m;