d_type isnt a member of dirent on win32.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 19 Jul 2009 18:51:25 +0000 (18:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 19 Jul 2009 18:51:25 +0000 (18:51 +0000)
source/blender/python/intern/bpy_interface.c

index 520856a8d0b70e8af90bfc5859278bf72b803220..6a5d01d9466d0076159a533fc876c753afc223b1 100644 (file)
@@ -511,9 +511,13 @@ void BPY_run_ui_scripts(bContext *C, int reload)
                        if (de->d_name[0] == '.') {
                                /* 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) {
-                               /* support packages */
                                BLI_join_dirfile(path, dirname, de->d_name);
+#endif
+                               /* support packages */
                                BLI_join_dirfile(path, path, "__init__.py");
 
                                if(BLI_exists(path)) {