Bug 38974 - goo/gtypes.h must #include <stdbool.h>
Summary: goo/gtypes.h must #include <stdbool.h>
Status: RESOLVED NOTABUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-07-05 05:26 UTC by Adrian Bunk
Modified: 2011-07-05 07:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch (1.53 KB, patch)
2011-07-05 05:26 UTC, Adrian Bunk
Details | Splinter Review

Description Adrian Bunk 2011-07-05 05:26:19 UTC
Created attachment 48769 [details] [review]
patch

Since commit ae79fc50 (Make GBool a bool instead of an int) this
header uses "bool".

This patch fixes the following build error I saw with xpdf in Debian:

<--  snip  -->

...
cc -g -O2 -march=core2 -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -Wno-write-strings -DHAVE_DIRENT_H  -c -o build/parseargs.o build/parseargs.c
In file included from build/parseargs.h:16:0,
                 from build/parseargs.c:14:
/usr/include/poppler/goo/gtypes.h:31:1: error: unknown type name ‘bool’
...

<--  snip  -->
Comment 1 Albert Astals Cid 2011-07-05 07:35:14 UTC
poppler is C++ code thus bool is defined there. You should be using a c++ compiler and not a c compiler as you are, fix your compiling toolchain.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.