X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fcompiler.h;h=222f889bb7c308a7c37fe93e0bdc6e9b92ecaec3;hb=d04a25a537201b46832cac28725a45bf559dc318;hp=1ea66968b10b6cbad675bcb55d55e823f95088a8;hpb=de58d5f57732df8129fbfd71d46ae5968ac59646;p=wimlib diff --git a/include/wimlib/compiler.h b/include/wimlib/compiler.h index 1ea66968..222f889b 100644 --- a/include/wimlib/compiler.h +++ b/include/wimlib/compiler.h @@ -106,4 +106,9 @@ # define STATIC_ASSERT(expr) ((void)sizeof(char[1 - 2 * !(expr)])) #endif +#define CONCAT_IMPL(s1, s2) s1##s2 + +/* CONCAT() - concatenate two tokens at preprocessing time. */ +#define CONCAT(s1, s2) CONCAT_IMPL(s1, s2) + #endif /* _WIMLIB_COMPILER_H */