[issue405] AIX C compiler does not recognise inline keyword

James Bostock mercurial-bugs at selenic.com
Fri Oct 27 02:44:01 CDT 2006


New submission from James Bostock <james.bostock at gmail.com>:

AIX's C compiler does not recognise the inline keyword so, when compiling
bdiff.c, one sees this:

"mercurial/bdiff.c", line 62.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
"mercurial/bdiff.c", line 61.8: 1506-485 (S) Parameter declaration list is
incompatible with declarator for inline.
"mercurial/bdiff.c", line 69.29: 1506-221 (S) Initializer must be a valid
constant expression.
...

Adding the following (a la what has been done for HP-UX) allows compilation to
succeed:

> hg diff mercurial/bdiff.c
diff -r c136c28a425a mercurial/bdiff.c
--- a/mercurial/bdiff.c Wed Oct 25 18:31:49 2006 -0500
+++ b/mercurial/bdiff.c Tue Oct 24 16:54:17 2006 +0100
@@ -12,6 +12,10 @@
 #include <Python.h>
 #include <stdlib.h>
 #include <string.h>
+
+#ifdef _AIX
+#define inline
+#endif

 #ifdef __hpux
 #define inline

-james

----------
messages: 2284
nosy: jsb
priority: bug
status: unread
title: AIX C compiler does not recognise inline keyword

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue405>
____________________________________________________



More information about the Mercurial-devel mailing list