Commit a22eb92
interface: use vsnprintf instead of open_memstream for macosx support
The function open_memstream is used in combination with fprintf in order
to provide printf-like functionality on top of ostreams.
open_memstream, however, is not available on macosx.
The use of open_memstream and fprintf was therefore replaced by vsnprintf
and a manually allocated buffer (the size is determined via dry-running
vsnprintf).
This modification does not change the external behaviour but restores
macosx compatibility.
Signed-off-by: Alexander Matz <a.matz.1988@gmail.com>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>1 parent aca4406 commit a22eb92
1 file changed
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
68 | 63 | | |
69 | | - | |
| 64 | + | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
| |||
0 commit comments