From 0f9d460e24ce9e1c09450f71502f1ab0700c0419 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 25 Mar 2011 00:09:20 -0700 Subject: Placate win32 build; no idea how it can be working currently on tinderbox. --- src/rt/rust_builtin.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 2de9d7f4..3f2ae511 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -417,9 +417,9 @@ rust_str* c_str_to_rust(rust_task *task, char const *str) { return vec_alloc_with_data(task, len, len, 1, (void*)str); } -#if defined(__WIN32__) extern "C" CDECL rust_vec* rust_list_files(rust_task *task, rust_str *path) { +#if defined(__WIN32__) array_list strings; WIN32_FIND_DATA FindFileData; HANDLE hFind = FindFirstFile((char*)path->data, &FindFileData); @@ -431,6 +431,15 @@ rust_list_files(rust_task *task, rust_str *path) { } return vec_alloc_with_data(task, strings.size(), strings.size(), sizeof(rust_str*), strings.data()); +#else + return NULL; +#endif +} + +#if defined(__WIN32__) +extern "C" CDECL rust_str * +rust_dirent_filename(rust_task *task, void* ent) { + return NULL; } #else extern "C" CDECL rust_str * -- cgit v1.2.3