file browser
authorAndrea Weikert <elubie@gmx.net>
Mon, 19 Oct 2009 19:26:28 +0000 (19:26 +0000)
committerAndrea Weikert <elubie@gmx.net>
Mon, 19 Oct 2009 19:26:28 +0000 (19:26 +0000)
* the code for BLI_is_dir can be shared on Windows, no need of extra implementation - error was usage of BLI_exists instead of BLI_exist!
* left BLI_is_dir in since it's nicer to read and understand
* also removed deprecated outliner_header from MSVC projectfiles.

projectfiles_vc9/blender/editors/ED_editors.vcproj
source/blender/blenlib/intern/storage.c

index c49e817196eb1a7e7d3127630a8b4cad1d09d771..4a8063bb5f02dce2f5579ca06b829b431d51c3e0 100644 (file)
                                RelativePath="..\..\..\source\blender\editors\space_outliner\outliner.c"\r
                                >\r
                        </File>\r
-                       <File\r
-                               RelativePath="..\..\..\source\blender\editors\space_outliner\outliner_header.c"\r
-                               >\r
-                       </File>\r
                        <File\r
                                RelativePath="..\..\..\source\blender\editors\space_outliner\outliner_intern.h"\r
                                >\r
index b48b6784c23695322287f9cc5c4a225fb3a99139..dbf1f5100a60024f17bf0ebc2d128bcd81359599 100644 (file)
@@ -470,11 +470,7 @@ int BLI_exist(char *name)
 
 /* would be better in fileops.c except that it needs stat.h so add here */
 int BLI_is_dir(char *file) {
-#ifdef WIN32
-       return 1; /* XXX - TODO */
-#else
        return S_ISDIR(BLI_exist(file));
-#endif
 }
 
 LinkNode *BLI_read_file_as_lines(char *name)