git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b134e8f
)
Add few defines for msvc (__func__, __alignof__).
author
Jan Rheinländer
<jrheinlaender@gmx.de>
Mon, 20 Sep 2010 11:23:03 +0000
(11:23 +0000)
committer
Alexei 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
patch
|
blob
|
history
diff --git
a/ginac/compiler.h
b/ginac/compiler.h
index 6c94150ce2e74101a401d07f11bcd8195541075e..f0ac685fafd4193db53b2b8eb812014c5f866568 100644
(file)
--- 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