summaryrefslogtreecommitdiff
path: root/lib/mbssep.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-12-22 12:11:44 +0100
committerBruno Haible <bruno@clisp.org>2008-12-22 12:11:44 +0100
commit4eda4ba54f3cf29f6b7fe4458e719cd2325be4c4 (patch)
tree73f83433f8d40c84f098fb4e179b97f1dbcc2cba /lib/mbssep.c
parent3e2e5dc1f6ded97ce60498e3ceb67fca5a41b8a8 (diff)
downloadgnulib-4eda4ba54f3cf29f6b7fe4458e719cd2325be4c4.tar.gz
Remove HAVE_MBRTOWC conditionals. Use mbrtowc unconditionally.
Diffstat (limited to 'lib/mbssep.c')
-rw-r--r--lib/mbssep.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/mbssep.c b/lib/mbssep.c
index a19f68fa91..3a9b530eed 100644
--- a/lib/mbssep.c
+++ b/lib/mbssep.c
@@ -1,5 +1,5 @@
/* Tokenizing a string.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007-2008 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2007.
This program is free software: you can redistribute it and/or modify
@@ -20,14 +20,11 @@
/* Specification. */
#include <string.h>
-#if HAVE_MBRTOWC
-# include "mbuiter.h"
-#endif
+#include "mbuiter.h"
char *
mbssep (char **stringp, const char *delim)
{
-#if HAVE_MBRTOWC
if (MB_CUR_MAX > 1)
{
char *start = *stringp;
@@ -60,6 +57,5 @@ mbssep (char **stringp, const char *delim)
}
}
else
-#endif
return strsep (stringp, delim);
}