X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcompiler.h;h=be745df652b3f6ae50fd3c3dcadc8d570a36857f;hp=0bdcf025f5a82506dbaea14061d91b0467a740bb;hb=f1a824bb5b7535c26c75ef03615179680c0f9753;hpb=1602530f716ba1d425a0667b897182b99c374823 diff --git a/ginac/compiler.h b/ginac/compiler.h index 0bdcf025..be745df6 100644 --- a/ginac/compiler.h +++ b/ginac/compiler.h @@ -3,7 +3,7 @@ * Definition of optimizing macros. */ /* - * GiNaC Copyright (C) 1999-2009 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,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