forked from json-c/json-c
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR json-c#336: since we can't use function overriding (due to problem…
…s with it on OSX) always include the _json_c_strerror function but only enable it with a flag during tests.
- Loading branch information
Showing
6 changed files
with
19 additions
and
27 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
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
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
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#ifndef __STRERROR_OVERRIDE_H__ | ||
#define __STRERROR_OVERRIDE_H__ | ||
#ifndef _json_strerror_override_h_ | ||
#define _json_strerror_override_h_ | ||
|
||
#include "config.h" | ||
#include <errno.h> | ||
|
||
#if ENABLE_STRERROR_OVERRIDE | ||
char *_json_c_strerror(int errno_in); | ||
|
||
#ifndef STRERROR_OVERRIDE_IMPL | ||
#define strerror _json_c_strerror | ||
#endif | ||
|
||
#endif /* __STRERROR_OVERRIDE_H__ */ | ||
#endif /* _json_strerror_override_h_ */ |
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
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