Line 0
Link Here
|
|
|
1 |
--- VEX/auxprogs/genoffsets.c 2016-01-13 19:20:20 UTC |
2 |
+++ VEX/auxprogs/genoffsets.c |
3 |
@@ -59,7 +59,7 @@ |
4 |
#define VG_STRINGIFZ(__str) #__str |
5 |
#define VG_STRINGIFY(__str) VG_STRINGIFZ(__str) |
6 |
|
7 |
-#define my_offsetof(__type,__field) (&((__type*)0)->__field) |
8 |
+#define my_offsetof(__type,__field) offsetof(__type,__field) |
9 |
|
10 |
/* This forces gcc to evaluate the my_offsetof call at compile time, |
11 |
and then emits it in the assembly, along with the nonsense string |