]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
OpenGL for GTK2 fixes.
[wxWidgets.git] / src / common / filefn.cpp
index 7f54e8896d5d7d25de63ed324e3cee762a5b1453..f6d5b9d69ff5def30a23ed614504705b8efaaca2 100644 (file)
 #ifndef __MWERKS__
     #include <sys/types.h>
     #include <sys/stat.h>
+#else
+#ifdef __MACH__
+#include <sys/types.h>
+#include <utime.h>
+#include <sys/stat.h>
+#include <unistd.h>
 #else
     #include <stat.h>
     #include <unistd.h>
     #include <unix.h>
     #include <fcntl.h>
 #endif
+#endif
 
 #ifdef __UNIX__
     #include <unistd.h>
@@ -1399,7 +1406,7 @@ wxString wxFindFirstFile(const wxChar *spec, int flags)
     wxSplitPath(spec, &gs_dirPath, NULL, NULL);
     if ( gs_dirPath.IsEmpty() )
         gs_dirPath = wxT(".");
-    if ( gs_dirPath.Last() != wxFILE_SEP_PATH )
+    if ( !wxEndsWithPathSeparator(gs_dirPath ) )
         gs_dirPath << wxFILE_SEP_PATH;
 
     if (gs_dir)