summaryrefslogtreecommitdiff
path: root/nasmlib.h
diff options
context:
space:
mode:
authorFrank Kotler <fbkotler@users.sourceforge.net>2007-08-26 05:48:54 +0000
committerFrank Kotler <fbkotler@users.sourceforge.net>2007-08-26 05:48:54 +0000
commit7fcda399cd9a3282168bd5e1c482bacdfb6ff9b4 (patch)
treeea49eede7dbcd60408ef4eae0c89f07181a96a28 /nasmlib.h
parent2ad45a56b40d2dabefac770d38068511368223a2 (diff)
downloadnasm-7fcda399cd9a3282168bd5e1c482bacdfb6ff9b4.tar.gz
add nasm_strsep to nasmlib, for output/outmacho.c - strtok doesn't work
Diffstat (limited to 'nasmlib.h')
-rw-r--r--nasmlib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/nasmlib.h b/nasmlib.h
index 22e229d7..4bfec686 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -71,6 +71,13 @@ int nasm_stricmp(const char *, const char *);
int nasm_strnicmp(const char *, const char *, int);
#endif
+#if defined(strsep)
+#define nasm_strsep strsep
+#else
+char *nasm_strsep(char **stringp, const char *delim);
+#endif
+
+
/*
* Convert a string into a number, using NASM number rules. Sets
* `*error' to TRUE if an error occurs, and FALSE otherwise.