X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Fattributes.h;fp=source%2Fcore%2Fattributes.h;h=653169850559c1f4709ebdc45065024e5eff936a;hb=2d608d773f3494e84cb154bdbb07954e87d9af86;hp=0000000000000000000000000000000000000000;hpb=ed8d2f5a3be2f99e3ecdfba840f87f589a0c0ac6;p=libs%2Fcore.git diff --git a/source/core/attributes.h b/source/core/attributes.h new file mode 100644 index 0000000..6531698 --- /dev/null +++ b/source/core/attributes.h @@ -0,0 +1,12 @@ +#ifndef MSP_CORE_ATTRIBUTES_H_ +#define MSP_CORE_ATTRIBUTES_H_ + +#if __cplusplus >= 201402L +#define DEPRECATED [[deprecated]] +#elif defined(__GNUC__) +#define DEPRECATED __attribute__((deprecated)) +#elif defined(__MSC_VER) +#define DEPRECATED __declspec(deprecated) +#endif + +#endif