[email protected] %!s(int64=8) %!d(string=hai) anos
pai
achega
c8f334be93
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  1. 1 7
      oxygine/src/core/STDFileSystem.cpp

+ 1 - 7
oxygine/src/core/STDFileSystem.cpp

@@ -5,12 +5,9 @@
 #include "Object.h"
 #include "file.h"
 
-#ifdef __APPLE__
-#include <unistd.h>
-#endif
-
 #ifndef _WIN32
 #include <dirent.h>
+#include <unistd.h>
 #endif
 
 
@@ -177,7 +174,6 @@ namespace oxygine
         int remove_directory(const char *path)
         {
 #ifndef WIN32
-#ifndef EMSCRIPTEN
             DIR *d = opendir(path);
             size_t path_len = strlen(path);
             int r = -1;
@@ -227,8 +223,6 @@ namespace oxygine
             }
 
             return r;
-#endif
-            return -1;
 #else
             // subdirectories have been found
             HANDLE          hFile;                       // Handle to directory