X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;ds=sidebyside;f=ginac%2Fcompiler.h;h=69d00c31d7f49c8e38594a32881afdf7b512b419;hb=c3195f0b5a7ac9fdbfdd04e5f4acf6a836063de0;hp=6c94150ce2e74101a401d07f11bcd8195541075e;hpb=c28e61da33905ddc69abf893aaffec98aa30d053;p=ginac.git diff --git a/ginac/compiler.h b/ginac/compiler.h index 6c94150c..69d00c31 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-2021 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,9 +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) +#define attribute_deprecated #endif #endif // ndef GINAC_COMPILER_DEP_H