Closed
Description
Hi. I ran into two compatibility issues with using fmt in a cygwin (gcc 5.4.0 64-bit) environment.
- Apparently, when using c++11, gcc goes into strict mode and doesn't include any functions that aren't part of the standard. In particular, fdopen was an issue. Some googling told me you can include POSIX functions by #defining the following in posixc.c before any headers are imported:
define _POSIX_C_SOURCE 200809L
I'm not quite sure if this is actually cygwin specific or not, as this seems to be gcc -- but I'm not in a position to test on linux yet.
- Cygwin doesn't provide strtod_l, so I disabled FMT_LOCALE and then fmt compiled and worked.
Metadata
Metadata
Assignees
Labels
No labels