X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fcompiler.h;h=be745df652b3f6ae50fd3c3dcadc8d570a36857f;hb=4f71d7035d32e8f74d9b13e0d6a9c0ab4a58062d;hp=f0ac685fafd4193db53b2b8eb812014c5f866568;hpb=ec57359e970338a6bbc3043c91af7e5bcfb0c8fa;p=ginac.git diff --git a/ginac/compiler.h b/ginac/compiler.h index f0ac685f..be745df6 100644 --- a/ginac/compiler.h +++ b/ginac/compiler.h @@ -3,7 +3,7 @@ * Definition of optimizing macros. */ /* - * GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,14 +26,11 @@ #ifdef __GNUC__ #define unlikely(cond) __builtin_expect((cond), 0) #define likely(cond) __builtin_expect((cond), 1) +#define attribute_deprecated __attribute__ ((deprecated)) #else #define unlikely(cond) (cond) #define likely(cond) (cond) -#endif - -#ifdef _MSC_VER -#define __func__ __FUNCTION__ -#define __alignof__ __alignof +#define attribute_deprecated #endif #endif // ndef GINAC_COMPILER_DEP_H