Allow Mercurial to build on HP-UX 11
authortksoh@users.sourceforge.net
Sat, 13 Aug 2005 12:41:00 -0800
changeset 867 0cd2ee61b10a
parent 866 6d6095823b82
child 896 01215ad04283
Allow Mercurial to build on HP-UX 11 Temporary fix to allow Mercurial to build on HP-UX 11, as the C compiler on HP-UX 11 doesn't support 'inline' qualifier. The '__inline' qualifier seemed to be supported, but not without first resolving other associated issues.
mercurial/bdiff.c
--- a/mercurial/bdiff.c	Fri Aug 12 23:54:09 2005 -0800
+++ b/mercurial/bdiff.c	Sat Aug 13 12:41:00 2005 -0800
@@ -12,6 +12,11 @@
 #include <Python.h>
 #include <stdlib.h>
 #include <string.h>
+
+#ifdef __hpux
+#define inline
+#endif
+
 #ifdef _WIN32
 #ifdef _MSC_VER
 #define inline __inline