From 3c737226ba0f490682eacccd16861d6d3f3b2c2a Mon Sep 17 00:00:00 2001 From: Antidote Date: Tue, 14 Jan 2014 20:13:26 -0800 Subject: [PATCH] * Added DEPRECATED macro --- include/Types.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/Types.hpp b/include/Types.hpp index 545953d..23ff221 100644 --- a/include/Types.hpp +++ b/include/Types.hpp @@ -1,4 +1,4 @@ -// This file is part of libZelda. +// This file is part of libZelda. // // libZelda is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -91,4 +91,13 @@ typedef unsigned long long Uint64; #define UNUSED(x) ((void)x) #endif // UNUSED +#ifdef __GNUC__ +#define DEPRECATED(func) func __attribute__ ((deprecated)) +#elif defined(_MSC_VER) +#define DEPRECATED(func) __declspec(deprecated) func +#else +#pragma message("WARNING: You need to implement DEPRECATED for this compiler") +#define DEPRECATED(func) func +#endif + #endif