projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b85df9
)
[runtime] Use ISO C __typeof__ instead of typeof () in one place.
author
Zoltan Varga
<vargaz@gmail.com>
Wed, 11 Feb 2015 15:32:13 +0000
(10:32 -0500)
committer
Zoltan Varga
<vargaz@gmail.com>
Wed, 11 Feb 2015 15:32:13 +0000
(10:32 -0500)
mono/utils/mono-compiler.h
patch
|
blob
|
history
diff --git
a/mono/utils/mono-compiler.h
b/mono/utils/mono-compiler.h
index bad994cc29338cd5bfdc17376e665dfe2a3414b6..6cb60f2c387585a4c4f58a91df0dc044a5215631 100644
(file)
--- a/
mono/utils/mono-compiler.h
+++ b/
mono/utils/mono-compiler.h
@@
-171,7
+171,7
@@
#define MONO_FAST_TLS_DECLARE(x) static pthread_key_t x;
#define MONO_THREAD_VAR_OFFSET(x,y) ({ \
-
typeof(x) _x = (x);
\
+
__typeof__(x) _x = (x);
\
pthread_key_t _y; \
(void) (&_x == &_y); \
y = (gint32) x; })