|
|
@@ -177,6 +177,7 @@ 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;
|
|
|
@@ -226,6 +227,8 @@ namespace oxygine
|
|
|
}
|
|
|
|
|
|
return r;
|
|
|
+#endif
|
|
|
+ return -1;
|
|
|
#else
|
|
|
// subdirectories have been found
|
|
|
HANDLE hFile; // Handle to directory
|