Diff for /qemu/qemu-tls.h between versions 1.1 and 1.1.1.2

version 1.1, 2018/04/24 19:17:54 version 1.1.1.2, 2018/04/24 19:35:17
Line 41 Line 41
 #ifdef __linux__  #ifdef __linux__
 #define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x)  #define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x)
 #define DEFINE_TLS(type, x)  __thread __typeof__(type) tls__##x  #define DEFINE_TLS(type, x)  __thread __typeof__(type) tls__##x
 #define get_tls(x)           tls__##x  #define tls_var(x)           tls__##x
 #else  #else
 /* Dummy implementations which define plain global variables */  /* Dummy implementations which define plain global variables */
 #define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x)  #define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x)
 #define DEFINE_TLS(type, x)  __typeof__(type) tls__##x  #define DEFINE_TLS(type, x)  __typeof__(type) tls__##x
 #define get_tls(x)           tls__##x  #define tls_var(x)           tls__##x
 #endif  #endif
   
 #endif  #endif

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


unix.superglobalmegacorp.com