summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/stream.c b/stream.c
index d9bd7992..bd22a5e5 100644
--- a/stream.c
+++ b/stream.c
@@ -25,6 +25,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#define UTF8_DECL_OPENDIR
#include <stdio.h>
#include <string.h>
#include <stddef.h>
@@ -4052,15 +4053,6 @@ val get_string(val stream_in, val nchars, val close_after_p)
return get_string_from_stream(strstream);
}
-static DIR *w_opendir(const wchar_t *wname)
-{
- char *name = utf8_dup_to(wname);
- DIR *d = opendir(name);
- free(name);
- return d;
-}
-
-
val open_directory(val path)
{
DIR *d = w_opendir(c_str(path));