From ec57359e970338a6bbc3043c91af7e5bcfb0c8fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Rheinl=C3=A4nder?= Date: Mon, 20 Sep 2010 11:23:03 +0000 Subject: [PATCH] Add few defines for msvc (__func__, __alignof__). msvc does not provide the __func__ macro (which is required by C99, btw). Also it has __alignof instead of __alignof__. --- ginac/compiler.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ginac/compiler.h b/ginac/compiler.h index 6c94150c..f0ac685f 100644 --- a/ginac/compiler.h +++ b/ginac/compiler.h @@ -31,4 +31,9 @@ #define likely(cond) (cond) #endif +#ifdef _MSC_VER +#define __func__ __FUNCTION__ +#define __alignof__ __alignof +#endif + #endif // ndef GINAC_COMPILER_DEP_H -- 2.45.0