d_type isnt a member of dirent on win32.

This commit is contained in:
Campbell Barton 2009-07-19 18:51:25 +00:00
parent 979bec79c3
commit 62ffb81316

@ -511,9 +511,13 @@ void BPY_run_ui_scripts(bContext *C, int reload)
if (de->d_name[0] == '.') { if (de->d_name[0] == '.') {
/* do nothing, probably .svn */ /* do nothing, probably .svn */
} }
#ifndef __linux__
else if( BLI_join_dirfile(path, dirname, de->d_name), S_ISDIR(BLI_exists(path))) {
#else
else if(de->d_type==DT_DIR) { else if(de->d_type==DT_DIR) {
/* support packages */
BLI_join_dirfile(path, dirname, de->d_name); BLI_join_dirfile(path, dirname, de->d_name);
#endif
/* support packages */
BLI_join_dirfile(path, path, "__init__.py"); BLI_join_dirfile(path, path, "__init__.py");
if(BLI_exists(path)) { if(BLI_exists(path)) {