* Added DEPRECATED macro

This commit is contained in:
Antidote 2014-01-14 20:13:26 -08:00
parent 4190cd59b4
commit 3c737226ba
1 changed files with 10 additions and 1 deletions

View File

@ -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