unix.c
changeset 4223 0f9535dda7ed
parent 4222 951fbf19b1ad
child 4300 687a17c9c557
equal deleted inserted replaced
4222:951fbf19b1ad 4223:0f9535dda7ed
     4 #include "openttd.h"
     4 #include "openttd.h"
     5 #include "functions.h"
     5 #include "functions.h"
     6 #include "window.h"
     6 #include "window.h"
     7 #include "string.h"
     7 #include "string.h"
     8 #include "table/strings.h"
     8 #include "table/strings.h"
     9 #include "hal.h"
       
    10 #include "variables.h"
     9 #include "variables.h"
    11 
    10 
    12 #include <dirent.h>
    11 #include <dirent.h>
    13 #include <unistd.h>
    12 #include <unistd.h>
    14 #include <sys/stat.h>
    13 #include <sys/stat.h>
    46 	#if defined(WITH_SDL)
    45 	#if defined(WITH_SDL)
    47 		//the mac implementation needs this file included in the same file as main()
    46 		//the mac implementation needs this file included in the same file as main()
    48 		#include <SDL.h>
    47 		#include <SDL.h>
    49 	#endif
    48 	#endif
    50 #endif
    49 #endif
    51 extern char *_fios_path;
       
    52 extern FiosItem *_fios_items;
       
    53 extern int _fios_count, _fios_alloc;
       
    54 
    50 
    55 bool FiosIsRoot(const char *path)
    51 bool FiosIsRoot(const char *path)
    56 {
    52 {
    57 #if !defined(__MORPHOS__) && !defined(__AMIGAOS__)
    53 #if !defined(__MORPHOS__) && !defined(__AMIGAOS__)
    58 	return path[1] == '\0';
    54 	return path[1] == '\0';