Fixes Nathan's changes at least for gcc.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5285 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-11-08 18:27:36 +00:00
parent 1cb6ca0473
commit 55e3d98707
@@ -136,6 +136,7 @@ struct small_data {
#if __MWERKS__ #if __MWERKS__
char name[1]; // name_size long, followed by data char name[1]; // name_size long, followed by data
// ToDo: this is bad and breaks the code
#else #else
char name[0]; // name_size long, followed by data char name[0]; // name_size long, followed by data
#endif #endif
@@ -184,7 +185,13 @@ struct bfs_inode {
char short_symlink[SHORT_SYMLINK_NAME_LENGTH]; char short_symlink[SHORT_SYMLINK_NAME_LENGTH];
}; };
int32 pad[4]; int32 pad[4];
#if __MWERKS__
small_data small_data_start[1]; small_data small_data_start[1];
// ToDo: this reduces the space you have in an inode for attributes
#else
small_data small_data_start[0];
#endif
int32 Magic1() const { return BFS_ENDIAN_TO_HOST_INT32(magic1); } int32 Magic1() const { return BFS_ENDIAN_TO_HOST_INT32(magic1); }
int32 UserID() const { return BFS_ENDIAN_TO_HOST_INT32(uid); } int32 UserID() const { return BFS_ENDIAN_TO_HOST_INT32(uid); }