d0f21e
--- src/cmd/basecomputer.cpp.orig	2012-03-19 03:20:14.000000000 -0500
d0f21e
+++ src/cmd/basecomputer.cpp	2012-04-04 22:33:14.208302980 -0500
d0f21e
@@ -3033,10 +3033,10 @@
7bbb68
     return 0;
7bbb68
 }
7bbb68
 
7bbb68
-static int datesort( const void *v1, const void *v2 )
7bbb68
+static int datesort ( const struct dirent **v1, const struct dirent **v2 )
7bbb68
 {
7bbb68
-    const struct dirent *d1 = *(const struct dirent**) v1;
7bbb68
-    const struct dirent *d2 = *(const struct dirent**) v2;
7bbb68
+    const struct dirent *d1=*v1;
7bbb68
+    const struct dirent *d2=*v2;
7bbb68
     struct stat s1, s2;
7bbb68
     std::string tmp = VSFileSystem::homedir+"/save/"+d1->d_name;
7bbb68
     if ( stat( tmp.c_str(), &s1 ) )
d0f21e
@@ -3047,12 +3047,6 @@
7bbb68
     return s1.st_mtime-s2.st_mtime;
7bbb68
 }
7bbb68
 
d0f21e
-#if (defined (__FREEBSD__)) || (defined (_WIN32) && !defined (__CYGWIN__ ) ) || (defined (__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 10) || defined(__HAIKU__)
7bbb68
-typedef int (*scancompare)( const struct dirent **v1, const struct dirent **v2 );
7bbb68
-#else
7bbb68
-typedef int (*scancompare)( const void *v1, const void *v2 );
7bbb68
-#endif
7bbb68
-
7bbb68
 //Load the controls for the News display.
7bbb68
 void BaseComputer::loadLoadSaveControls( void )
7bbb68
 {
d0f21e
@@ -3065,7 +3059,7 @@
7bbb68
     if (playerUnit) {
7bbb68
         struct dirent **dirlist;
7bbb68
         std::string     savedir = VSFileSystem::homedir+"/save/";
7bbb68
-        int ret = scandir( savedir.c_str(), &dirlist, nodirs, (scancompare)&datesort );
7bbb68
+        int ret = scandir (savedir.c_str(),&dirlist,nodirs,datesort);
7bbb68
         while (ret-- > 0)
7bbb68
             picker->addCell( new SimplePickerCell( dirlist[ret]->d_name ) );
7bbb68
     }