[Bf-blender-cvs] [45287f909cc] master: Fix for building on systems besides apple/windows/linux

Campbell Barton noreply at git.blender.org
Fri Jul 10 15:02:41 CEST 2020


Commit: 45287f909cce952ef1a248612ed8c0a1ab45846c
Author: Campbell Barton
Date:   Fri Jul 10 22:58:30 2020 +1000
Branches: master
https://developer.blender.org/rB45287f909cce952ef1a248612ed8c0a1ab45846c

Fix for building on systems besides apple/windows/linux

===================================================================

M	source/blender/blenlib/intern/storage.c

===================================================================

diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index f2217b1cd1a..96a7445462d 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -275,18 +275,15 @@ eFileAttributes BLI_file_attributes(const char *path)
     ret |= FILE_ATTR_REPARSE_POINT;
   }
 
-#  endif
+#  else
 
-#  ifdef __linux__
   UNUSED_VARS(path);
 
   /* TODO:
    * If Immutable set FILE_ATTR_READONLY
    * If Archived set FILE_ATTR_ARCHIVE
    */
-
 #  endif
-
   return ret;
 }
 #endif
@@ -330,9 +327,7 @@ bool BLI_file_alias_target(char target[FILE_MAXDIR], const char *filepath)
   }
 
   return (success && target[0]);
-#  endif
-
-#  ifdef __linux__
+#  else
   UNUSED_VARS(target, filepath);
   /* File-based redirection not supported. */
   return false;



More information about the Bf-blender-cvs mailing list