compiler: Add missing container_of macro for MSVC

This commit is contained in:
Lioncash 2019-01-28 09:27:55 -05:00
parent 65e5d72a94
commit 4aaa75d05b
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -77,6 +77,8 @@
#define tostring(s) #s
#endif
#define container_of(ptr, type, member) ((type *)((char *)(ptr) -offsetof(type,member)))
#define sizeof_field(type, field) sizeof(((type *)0)->field)
static double rint( double x )