diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-01-15 01:57:00 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-01-15 02:33:55 +0400 |
commit | 53f93ef66d6821249cedbb38e9a7a714bd361890 (patch) | |
tree | f6caaa44154f715a31e278d3fce0d85560d7f2bb /source/blender/blenlib/BLI_winstuff.h | |
parent | eda49cf58eed6785a8bd9e7bdebe07b8953b0275 (diff) |
Fix build issues with mingw's
Diffstat (limited to 'source/blender/blenlib/BLI_winstuff.h')
-rw-r--r-- | source/blender/blenlib/BLI_winstuff.h | 8 |
1 files changed, 7 insertions, 1 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); |