Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swftools: Fix build failure on pickier compilers
- Loading branch information
1 parent
b54c5a0
commit be0a05d
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
graphics/swftools/files/patch-lib-pdf-xpdf-GlobalParams.cc.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- lib/pdf/xpdf/GlobalParams.cc.orig 2012-04-08 12:26:34.000000000 -0500 | ||
+++ lib/pdf/xpdf/GlobalParams.cc 2017-10-21 00:03:04.000000000 -0500 | ||
@@ -922,9 +922,9 @@ | ||
char* p = pos1>pos2?pos1:pos2; | ||
int pos = p ? p-cfgFileName : -1; | ||
GString*path = new GString(new GString(cfgFileName), 0, (pos < 0 ? strlen(cfgFileName): pos)); | ||
- if(pos1>=0) | ||
+ if (pos1 != NULL) | ||
path->append('/'); | ||
- else if(pos2>=0) | ||
+ else if (pos2 != NULL) | ||
path->append('\\'); | ||
else | ||
#ifdef WIN32 |