diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-04-30 12:17:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-04-30 12:17:14 +0900 |
| commit | 8d1f9a6ece97ae94cdb8ce2ca173379660ff1bac (patch) | |
| tree | 68274a630e02c21690e89f733cc77a581f1117f7 /src | |
| parent | 1fefa046cd62e0ccf037dcb4ce0739792b620404 (diff) | |
| parent | 8789a5d52047c254dd99893ab10dc120f205ec79 (diff) | |
| download | mruby-8d1f9a6ece97ae94cdb8ce2ca173379660ff1bac.tar.gz mruby-8d1f9a6ece97ae94cdb8ce2ca173379660ff1bac.zip | |
Merge pull request #2776 from cremno/undef-strndup
prevent accidental macro redefinition of strndup()
Diffstat (limited to 'src')
| -rw-r--r-- | src/parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y index 336b20a6c..0768e9eff 100644 --- a/src/parse.y +++ b/src/parse.y @@ -201,6 +201,7 @@ parser_strndup(parser_state *p, const char *s, size_t len) b[len] = '\0'; return b; } +#undef strndup #define strndup(s,len) parser_strndup(p, s, len) static char* |
