mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-22 11:23:27 +08:00
clang7 does not support zero sized structs
This happens with aarch64 on raspberry pi.
This commit is contained in:
@@ -2659,7 +2659,11 @@ struct myspace {
|
||||
short int profile;
|
||||
};
|
||||
struct myspace2 {
|
||||
#if CC_NAME == CC_clang /* clang7 doesn't support zero sized structs */
|
||||
char a[1];
|
||||
#else
|
||||
char a[0];
|
||||
#endif
|
||||
};
|
||||
struct myspace3 {
|
||||
char a[1];
|
||||
|
||||
Reference in New Issue
Block a user