Fix build issues with mingw's
This commit is contained in:
@@ -127,6 +127,10 @@ typedef long ssize_t;
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef FREE_WINDOWS
|
||||||
|
#include <dirent.h>
|
||||||
|
#else
|
||||||
struct dirent {
|
struct dirent {
|
||||||
int d_ino;
|
int d_ino;
|
||||||
int d_off;
|
int d_off;
|
||||||
@@ -146,10 +150,12 @@ typedef struct _DIR {
|
|||||||
struct dirent direntry;
|
struct dirent direntry;
|
||||||
} DIR;
|
} DIR;
|
||||||
|
|
||||||
void RegisterBlendExtension(void);
|
|
||||||
DIR *opendir(const char *path);
|
DIR *opendir(const char *path);
|
||||||
struct dirent *readdir(DIR *dp);
|
struct dirent *readdir(DIR *dp);
|
||||||
int closedir(DIR *dp);
|
int closedir(DIR *dp);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void RegisterBlendExtension(void);
|
||||||
void get_default_root(char *root);
|
void get_default_root(char *root);
|
||||||
int check_file_chars(char *filename);
|
int check_file_chars(char *filename);
|
||||||
const char *dirname(char *path);
|
const char *dirname(char *path);
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
* \ingroup bli
|
* \ingroup bli
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef WIN32
|
#if defined(WIN32) && !defined(FREE_WINDOWS)
|
||||||
|
|
||||||
# ifdef USE_STANDALONE
|
# ifdef USE_STANDALONE
|
||||||
# define MEM_mallocN(size, str) ((void)str, malloc(size))
|
# define MEM_mallocN(size, str) ((void)str, malloc(size))
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
#include "../blenlib/BLI_sys_types.h"
|
#include "../blenlib/BLI_sys_types.h"
|
||||||
|
|
||||||
/* for DIR */
|
/* for DIR */
|
||||||
#if !defined(WIN32) || defined(__MINGW64__)
|
#if !defined(WIN32) || defined(FREEWINDOWS)
|
||||||
# include <dirent.h>
|
# include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user