Bug 15874 - build fails with --enable-fixedpoint
Summary: build fails with --enable-fixedpoint
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: splash backend (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 07:39 UTC by Arnaud Lacombe
Modified: 2008-05-08 14:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
fix build of Splash.cc. (935 bytes, patch)
2008-05-08 07:39 UTC, Arnaud Lacombe
Details | Splinter Review

Description Arnaud Lacombe 2008-05-08 07:39:35 UTC
Created attachment 16431 [details] [review]
fix build of Splash.cc.

build of Splash.cc fails with the following:

Splash.cc: In member function 'void Splash::fillGlyph2(int, int, SplashGlyphBitmap*, GBool)':
Splash.cc:1769: error: 'ceil' was not declared in this scope
Splash.cc:1815: error: 'ceil' was not declared in this scope

if we look in goo/FixedPoint.h, we can see that ceil() exists only for a FixedPoint argument. As `glyph->w' is an integer, the call to ceil() can be replaced here by a direct tristate operator. The attached patch fix this.
Comment 1 Albert Astals Cid 2008-05-08 14:17:40 UTC
Fixed although with a different patch (use splashCeil)


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.