[sword-svn] r2401 - trunk/src/utilfuns/win32

scribe at crosswire.org scribe at crosswire.org
Tue May 12 20:30:04 MST 2009


Author: scribe
Date: 2009-05-12 20:30:03 -0700 (Tue, 12 May 2009)
New Revision: 2401

Modified:
   trunk/src/utilfuns/win32/dirent.cpp
   trunk/src/utilfuns/win32/dirent.h
Log:
remainder on fixes from ghellings.  These are hopefully ok as I did them manually and couldn't test


Modified: trunk/src/utilfuns/win32/dirent.cpp
===================================================================
--- trunk/src/utilfuns/win32/dirent.cpp	2009-05-11 12:09:17 UTC (rev 2400)
+++ trunk/src/utilfuns/win32/dirent.cpp	2009-05-13 03:30:03 UTC (rev 2401)
@@ -24,7 +24,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-struct DIR
+struct SWDLLEXPORT DIR
 {
     long                handle; /* -1 for failed rewind */
     struct _finddata_t  info;
@@ -32,7 +32,7 @@
     char                *name;  /* NTBS */
 };
 
-DIR *opendir(const char *name)
+SWDLLEXPORT DIR *opendir(const char *name)
 {
     DIR *dir = 0;
 
@@ -73,7 +73,7 @@
     return dir;
 }
 
-int closedir(DIR *dir)
+SWDLLEXPORT int closedir(DIR *dir)
 {
     int result = -1;
 
@@ -96,7 +96,7 @@
     return result;
 }
 
-struct dirent *readdir(DIR *dir)
+SWDLLEXPORT struct dirent *readdir(DIR *dir)
 {
     struct dirent *result = 0;
 
@@ -116,7 +116,7 @@
     return result;
 }
 
-void rewinddir(DIR *dir)
+SWDLLEXPORT void rewinddir(DIR *dir)
 {
     if(dir && dir->handle != -1)
     {

Modified: trunk/src/utilfuns/win32/dirent.h
===================================================================
--- trunk/src/utilfuns/win32/dirent.h	2009-05-11 12:09:17 UTC (rev 2400)
+++ trunk/src/utilfuns/win32/dirent.h	2009-05-13 03:30:03 UTC (rev 2401)
@@ -21,7 +21,7 @@
 
 typedef struct DIR DIR;
 
-struct dirent
+struct SWDLLEXPORT dirent
 {
     char *d_name;
 };




More information about the sword-cvs mailing list