Commit 5c83226
chuck
pdflib-lite: macosx: include math.h rather than deprecated fp.h
On a mac the bundled png file libs/png/pngconf.h may attempt to
include the deprecated <fp.h> file in some cases (should fail
with a fatal file not found error). This is controlled by
the "MACOS" define in pngconf.h (note that "MACOSX" is defined
elsewhere... "MACOS" only appears in pngconf.h). On MACOSX
we can include <math.h> instead of <fp.h> to avoid the fatal
error. (when compiling on my older macbook I found that "MACOS"
was not getting defined because TARGET_OS_MAC was not define, so
it did not attempt to include fp.h and fail. compiling on my
newer macbook does get the error.)1 parent 8ead779 commit 5c83226
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments