]> www.ginac.de Git - ginac.git/commitdiff
Remove MSVC-specific definition of __func__ and __alignof__.
authorJan Rheinländer <jrheinlaender@gmx.de>
Tue, 1 May 2018 18:43:04 +0000 (20:43 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 1 May 2018 18:43:04 +0000 (20:43 +0200)
They are not required any more in C++11.

ginac/compiler.h
ginac/polynomial/primes_factory.h

index 5b438e7284b9bbcfc3b3f8c97011edd84bb2abd2..d307bf7dde5945dfbf9352209f6dc4cec6060964 100644 (file)
@@ -33,9 +33,4 @@
 #define attribute_deprecated
 #endif
 
-#ifdef _MSC_VER
-#define __func__ __FUNCTION__
-#define __alignof__ __alignof
-#endif
-
 #endif // ndef GINAC_COMPILER_DEP_H
index 3227ecddb829d57668e7a52b42516d681ab60dc8..60d862f1f42e21c203fb8f8e52841e3435b0ab18 100644 (file)
@@ -47,7 +47,7 @@ private:
        // or even numeric. Eventually this will be fixed).
        cln::cl_I last;
        // This ensures coefficients are immediate.
-       static const int immediate_bits = 8*sizeof(void *) - __alignof__(void *);
+       static const int immediate_bits = 8*sizeof(void *) - alignof(void *);
        static const long opt_hint = (1L << (immediate_bits >> 1)) - 1;
 public:
        primes_factory()