Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
podofo
0019-Changes-needed-to-compile-podofo.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0019-Changes-needed-to-compile-podofo.patch of Package podofo
Subject: Changes needed to compile podofo 0.9.5 on CentOS 7, but are probably useful for other distributions too Url: https://sourceforge.net/p/podofo/code/1854/ Patch by Jan-Erik S The following diff contains changes needed to compile podofo 0.9.5 on CentOS 7, but are probably useful for other distributions too. The first of them can be explained by the description here: https://cmake.org/cmake/help/v3.0/manual/cmake-policies.7.html The other can be explained by running this command: cpp -dM < /dev/null | grep -E 'PTRDIFF_MAX|INT_MAX' --- a/podofo/trunk/CMakeLists.txt +++ b/podofo/trunk/CMakeLists.txt @@ -32,7 +32,9 @@ # Prefer files in CMAKE_MODULE_PATH over shipped ones in module directory CMAKE_POLICY(SET CMP0017 NEW) # https://cmake.org/cmake/help/v3.0/policy/CMP0017.html # Do not use export_library_dependencies() anymore +if(POLICY CMP0033) CMAKE_POLICY(SET CMP0033 NEW) # https://cmake.org/cmake/help/v3.0/policy/CMP0033.html +endif() # Load modules from our source tree too SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") --- a/podofo/trunk/src/base/PdfParser.cpp +++ b/podofo/trunk/src/base/PdfParser.cpp @@ -63,6 +63,8 @@ #if defined( PTRDIFF_MAX ) #define PDF_LONG_MAX PTRDIFF_MAX +#elif defined( __PTRDIFF_MAX__ ) +#define PDF_LONG_MAX __PTRDIFF_MAX__ #else // only old compilers don't define PTRDIFF_MAX (all 32-bit only?) #define PDF_LONG_MAX INT_MAX
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor