diff win/dirent.c @ 1362:412af8059331

Attempt to get it building with Mingw again... builds but crashes. Fix building DLL without HTML widget support... Mingw is missing required headers. Moved wrapper functions into the main source file so it will export the APIs even if unsupported. Removed debugging code from XBrowseForFolder.cpp because Mingw does not support it.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 18 Nov 2011 18:56:40 +0000
parents 1e3ab8adba90
children 6baf177f335c
line wrap: on
line diff
--- a/win/dirent.c	Fri Nov 18 16:50:49 2011 +0000
+++ b/win/dirent.c	Fri Nov 18 18:56:40 2011 +0000
@@ -7,6 +7,7 @@
 
 #include "compat.h"
 #include <errno.h>
+#include <direct.h>
 
 #define error(rc) errno = 255
 
@@ -136,7 +137,6 @@
 
 	if (dir->number)
 	{
-		ULONG rc;
 		dir->count = 100;
 		if(!FindNextFile(dir->handle, &(dir->data)))
 		{
@@ -172,7 +172,6 @@
 {
 	if (dir->number > off) {
 		char name[MAXPATHLEN+2];
-		ULONG rc;
 
 		FindClose(dir->handle);