compiler: Add glue macros for MSVC

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

View file

@ -70,6 +70,13 @@
#define unlikely(x) (x)
#endif
#ifndef glue
#define xglue(x, y) x ## y
#define glue(x, y) xglue(x, y)
#define stringify(s) tostring(s)
#define tostring(s) #s
#endif
#define sizeof_field(type, field) sizeof(((type *)0)->field)
static double rint( double x )