aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-04-22 13:41:58 +0200
committerShauren <shauren.trinity@gmail.com>2011-04-22 13:41:58 +0200
commit40cb0718c2cbcba3eda73bae4500c882b4604b26 (patch)
tree0aa417c152dabeaa0314c6dad119b869f295e1e6 /src/server/shared
parent18c9038ca79061b17a5f936d415cb176f8e4eb1d (diff)
Core: Added definitions to mark methods as deprecated and marked DoCompleteAchievement as such
Diffstat (limited to 'src/server/shared')
-rwxr-xr-xsrc/server/shared/Define.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/shared/Define.h b/src/server/shared/Define.h
index d5edbd68b7b..46762c5d7e4 100755
--- a/src/server/shared/Define.h
+++ b/src/server/shared/Define.h
@@ -42,9 +42,13 @@
# ifndef DECLSPEC_NORETURN
# define DECLSPEC_NORETURN __declspec(noreturn)
# endif //DECLSPEC_NORETURN
+# ifndef DECLSPEC_DEPRECATED
+# define DECLSPEC_DEPRECATED __declspec(deprecated)
+# endif //DECLSPEC_DEPRECATED
#else //PLATFORM != PLATFORM_WINDOWS
# define TRINITY_PATH_MAX PATH_MAX
# define DECLSPEC_NORETURN
+# define DECLSPEC_DEPRECATED
#endif //PLATFORM
#if !defined(COREDEBUG)
@@ -59,9 +63,11 @@
#if COMPILER == COMPILER_GNU
# define ATTR_NORETURN __attribute__((noreturn))
# define ATTR_PRINTF(F,V) __attribute__ ((format (printf, F, V)))
+# define ATTR_DEPRECATED __attribute__((deprecated))
#else //COMPILER != COMPILER_GNU
# define ATTR_NORETURN
# define ATTR_PRINTF(F,V)
+# define ATTR_DEPRECATED
#endif //COMPILER == COMPILER_GNU
typedef ACE_INT64 int64;