summaryrefslogtreecommitdiff
path: root/src/nsgenbind-ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsgenbind-ast.h')
-rw-r--r--src/nsgenbind-ast.h5
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