bfs_shell: fix gcc2 build
Fix regression that building Haiku on 32 bit Haiku become not possible. Change-Id: I527a8c3bc3ad4744d5515a76888d5cac06293cbe Reviewed-on: https://review.haiku-os.org/c/haiku/+/5750 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -173,6 +173,8 @@
|
||||
|
||||
#undef offsetof
|
||||
#define offsetof(type,member) fssh_offsetof(type,member)
|
||||
#undef alignof
|
||||
#define alignof(type) fssh_alignof(type)
|
||||
|
||||
#define min_c(a,b) fssh_min_c(a,b)
|
||||
#define max_c(a,b) fssh_max_c(a,b)
|
||||
|
||||
@@ -49,6 +49,8 @@ enum fssh_node_flavor {
|
||||
#define fssh_offsetof(type,member) ((size_t)&((type*)0)->member)
|
||||
#endif
|
||||
|
||||
#define fssh_alignof(type) __alignof__(type)
|
||||
|
||||
#define fssh_min_c(a,b) ((a)>(b)?(b):(a))
|
||||
#define fssh_max_c(a,b) ((a)>(b)?(a):(b))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user