X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcompiler.h;h=823e197b9449fdbea80f9915515bf4da47cfb3bd;hp=f0ac685fafd4193db53b2b8eb812014c5f866568;hb=239bfb08882b0aa089d68bad145f61397134b2f0;hpb=ec57359e970338a6bbc3043c91af7e5bcfb0c8fa diff --git a/ginac/compiler.h b/ginac/compiler.h index f0ac685f..823e197b 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-2016 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 deprecated __attribute__ ((deprecated)); #else #define unlikely(cond) (cond) #define likely(cond) (cond) +#define deprecated #endif #ifdef _MSC_VER