]> www.ginac.de Git - ginac.git/commitdiff
Add few defines for msvc (__func__, __alignof__).
authorJan Rheinländer <jrheinlaender@gmx.de>
Mon, 20 Sep 2010 11:23:03 +0000 (11:23 +0000)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Fri, 26 Nov 2010 22:15:55 +0000 (00:15 +0200)
msvc does not provide the __func__ macro (which is required by C99,
btw). Also it has __alignof instead of __alignof__.

ginac/compiler.h

index 6c94150ce2e74101a401d07f11bcd8195541075e..f0ac685fafd4193db53b2b8eb812014c5f866568 100644 (file)
@@ -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