[Poppler-bugs] [Bug 97915] g++ 5.4.0 cannot compile poppler (due to C++11 option)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Sep 25 13:37:21 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=97915
--- Comment #5 from Masamichi Hosoda <trueroad at trueroad.jp> ---
(In reply to Adrian Johnson from comment #4)
> I got gfile.cc to compile on cygwin by adding #define _BSD_SOURCE to the
> file. Although I read somewhere that _BSD_SOURCE has been replaced by
> _DEFAULT_SOURCE. We may need to add something to configure.ac and cmake to
> set the feature macro based on the compiler version.
>
> The problem with using -std-gnu++11 is we don't want to allow gnu features
> that are incompatible with Visual C++.
I've found the description of _BSD_SOURCE and _DEFAULT_VERSION.
http://man7.org/linux/man-pages/man7/feature_test_macros.7.html
It says:
To allow code that requires _BSD_SOURCE
in glibc 2.19 and earlier and _DEFAULT_SOURCE in glibc 2.20 and
later to compile without warnings, define both _BSD_SOURCE and
_DEFAULT_SOURCE.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160925/1b83d481/attachment.html>
More information about the Poppler-bugs
mailing list