summaryrefslogtreecommitdiff
path: root/strerror_override.h
Commit message (Collapse)AuthorAgeFilesLines
* clang-format the filesdota172020-04-031-2/+2
|
* Add a brief overview of each file to the docs.Eric Haszlakiewicz2017-12-061-0/+5
|
* strerror_override: re-organize strerror_override.hAlexandru Ardelean2017-11-071-2/+2
| | | | | | | Always include <string.h> before _json_c_strerror() definition. Should fix linker issues on MSVC. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* PR #336: fix to previous change, be sure to include string.h when we're ↵Eric Haszlakiewicz2017-07-271-0/+2
| | | | using the real strerror.
* strerror_override: add extern "C" and JSON_EXPORT specifiers for Visual C++ ↵Alexandru Ardelean2017-07-191-1/+11
| | | | | | | | compilers Fixes build on AppVeyor. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* PR #336: since we can't use function overriding (due to problems with it onEric Haszlakiewicz2017-07-151-4/+5
| | | | | OSX) always include the _json_c_strerror function but only enable it with a flag during tests.
* build: make `strerror()` override-ableAlexandru Ardelean2017-07-131-0/+12
If we want to override `strerror()` in libjson-c to make tests consistent across platforms, we need to do it build-wide as configure/build option. Apple linkers make it really hard to override functions at link-time, and this seems to be locked down on travis-ci.org [ for security reasons I assume ]. While I got it to work locally, it did not work when running on travis. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>