diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-14 07:47:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 07:47:19 -0400 |
commit | 646bae34c9962d308ea82c5d03f5862d20fcca02 (patch) | |
tree | 75371fcd6eccf6bda1266391246f87663b0b272c /src/util.h | |
parent | b6735461d9148a91cfaf4633403843aa88db9001 (diff) | |
parent | 6c53d6ab393fec13e9af8a3d9df5b74959352f4b (diff) | |
download | libgit2-646bae34c9962d308ea82c5d03f5862d20fcca02.tar.gz |
Merge pull request #6041 from Esri/duncan/typeof
Use __typeof__ GNUC keyword for ISO C compatibility
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index 68c2b1804..e8074fcb9 100644 --- a/src/util.h +++ b/src/util.h @@ -34,7 +34,7 @@ # define GIT_CONTAINER_OF(ptr, type, member) \ __builtin_choose_expr( \ __builtin_offsetof(type, member) == 0 && \ - __builtin_types_compatible_p(typeof(&((type *) 0)->member), typeof(ptr)), \ + __builtin_types_compatible_p(__typeof__(&((type *) 0)->member), __typeof__(ptr)), \ ((type *) (ptr)), \ (void)0) #else |