Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_winstuff.h8
-rw-r--r--source/blender/blenlib/intern/winstuff_dir.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h
index 13a946ac370..1959d5171fb 100644
--- a/source/blender/blenlib/BLI_winstuff.h
+++ b/source/blender/blenlib/BLI_winstuff.h
@@ -127,6 +127,10 @@ typedef long ssize_t;
# endif
#endif
+
+#ifdef FREE_WINDOWS
+#include <dirent.h>
+#else
struct dirent {
int d_ino;
int d_off;
@@ -146,10 +150,12 @@ typedef struct _DIR {
struct dirent direntry;
} DIR;
-void RegisterBlendExtension(void);
DIR *opendir(const char *path);
struct dirent *readdir(DIR *dp);
int closedir(DIR *dp);
+#endif
+
+void RegisterBlendExtension(void);
void get_default_root(char *root);
int check_file_chars(char *filename);
const char *dirname(char *path);
diff --git a/source/blender/blenlib/intern/winstuff_dir.c b/source/blender/blenlib/intern/winstuff_dir.c
index 5cd2baa033c..4082681ee11 100644
--- a/source/blender/blenlib/intern/winstuff_dir.c
+++ b/source/blender/blenlib/intern/winstuff_dir.c
@@ -25,7 +25,7 @@
* \ingroup bli
*/
-#ifdef WIN32
+#if defined(WIN32) && !defined(FREE_WINDOWS)
# ifdef USE_STANDALONE
# define MEM_mallocN(size, str) ((void)str, malloc(size))