diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2014-01-17 18:52:49 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2014-01-17 18:52:49 +0000 |
commit | cc2f53b442d5f1800d7c3d6f478e669cd386f7b5 (patch) | |
tree | 404a4b39dd68d22bccaa8928c587b398e54f7b7c /src/nsgenbind-ast.h | |
parent | aab61ebdb4494309e688ea8afbd97c5a2f89e935 (diff) | |
download | nsgenbind-cc2f53b442d5f1800d7c3d6f478e669cd386f7b5.tar.gz nsgenbind-cc2f53b442d5f1800d7c3d6f478e669cd386f7b5.tar.bz2 |
Fix building for Win32
Diffstat (limited to 'src/nsgenbind-ast.h')
-rw-r--r-- | src/nsgenbind-ast.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nsgenbind-ast.h b/src/nsgenbind-ast.h index 4e2ffee..6513f7f 100644 --- a/src/nsgenbind-ast.h +++ b/src/nsgenbind-ast.h @@ -126,4 +126,9 @@ char *genbind_node_gettext(struct genbind_node *node); struct genbind_node *genbind_node_getnode(struct genbind_node *node); int genbind_node_getint(struct genbind_node *node); +#ifdef _WIN32 +#define NEED_STRNDUP 1 +char *strndup(const char *s, size_t n); +#endif + #endif |