You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/07/11 06:58:28 UTC
[lucy-commits] svn commit: r1145029 - /incubator/lucy/trunk/clownfish/src/CFCUtil.c
Author: marvin
Date: Mon Jul 11 04:58:27 2011
New Revision: 1145029
URL: http://svn.apache.org/viewvc?rev=1145029&view=rev
Log:
Fix CFCUtil_make_dir on Windows.
Use direct.h under both ActivePerl/MSVC and Strawberry-Perl/MinGW. Also fixa
broken return type.
Modified:
incubator/lucy/trunk/clownfish/src/CFCUtil.c
Modified: incubator/lucy/trunk/clownfish/src/CFCUtil.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCUtil.c?rev=1145029&r1=1145028&r2=1145029&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCUtil.c (original)
+++ incubator/lucy/trunk/clownfish/src/CFCUtil.c Mon Jul 11 04:58:27 2011
@@ -332,8 +332,9 @@ CFCUtil_make_path(const char *path) {
}
/******************************** WINDOWS **********************************/
-#ifdef WIN32
+#ifdef _WIN32
+#include <direct.h>
#include <windows.h>
typedef struct WinDH {
@@ -343,7 +344,7 @@ typedef struct WinDH {
int first_time;
} WinDH;
-void
+int
CFCUtil_make_dir (const char *dir) {
return !mkdir(dir);
}