Browse Source

Merge branch 'master' of github.com:lhunath/json-c

pull/354/head
Maarten Billemont 8 years ago
parent
commit
ac00e62db3
3 changed files with 15 additions and 3 deletions
  1. +1
    -1
      .travis.yml
  2. +1
    -1
      strerror_override.c
  3. +13
    -1
      strerror_override.h

+ 1
- 1
.travis.yml View File

@@ -22,7 +22,7 @@ install:
- sh autogen.sh
before_script:
- ./configure --enable-strerror-override
- ./configure
script:
- make


+ 1
- 1
strerror_override.c View File

@@ -1,4 +1,4 @@
#define STERROR_OVERRIDE_IMPL 1
#define STRERROR_OVERRIDE_IMPL 1
#include "strerror_override.h"

/*


+ 13
- 1
strerror_override.h View File

@@ -4,10 +4,22 @@
#include "config.h"
#include <errno.h>

char *_json_c_strerror(int errno_in);
#include "json_object.h" /* for JSON_EXPORT */

#ifdef __cplusplus
extern "C" {
#endif

JSON_EXPORT char *_json_c_strerror(int errno_in);

#ifndef STRERROR_OVERRIDE_IMPL
#define strerror _json_c_strerror
#else
#include <string.h>
#endif

#ifdef __cplusplus
}
#endif

#endif /* _json_strerror_override_h_ */

Loading…
Cancel
Save