[Bug 4605] New: stdbool.h inclusion fails in pre C99 compilation environment
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Mon Apr 20 04:36:05 UTC 2015
http://bz.selenic.com/show_bug.cgi?id=4605
Priority: normal
Bug ID: 4605
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: stdbool.h inclusion fails in pre C99 compilation
environment
Severity: bug
Classification: Unclassified
OS: Other
Reporter: gonufer at jazzhaiku.com
Hardware: All
Status: UNCONFIRMED
Version: 3.4-rc
Component: Mercurial
Product: Mercurial
building 'mercurial.base85' extension
cc -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/pkg/gnu/include/ncurses -xO2 -xarch=pentium_pro -xtarget=pentium_pro
-xildoff -xbuiltin=%none -DNDEBUG -KPIC -DPIC -I/pkg/local/include/python2.7 -c
mercurial/base85.c -o
build/temp.solaris-2.10-i86pc.32bit-2.7/mercurial/base85.o
"/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid only in
a c99 compilation environment."
cc: acomp failed for mercurial/base85.c
error: command 'cc' failed with exit status 2
Makefile:52: recipe for target 'build' failed
Checking for C99 or later works for me:
+#if defined(_MSC_VER) || __STDC_VERSION__ < 199901L
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list