From f2a6fa9a7f335f3935bff6372184aeb44c37a53f Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Wed, 7 Nov 2012 17:18:53 +0000 Subject: [PATCH] Add POLYVOX_DEPRECATED macro to label deprecated classes and functions --- library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h b/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h index d02c62c0..8feb34bd 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h @@ -30,7 +30,9 @@ freely, subject to the following restrictions: #define POLYVOX_HELPER_IMPORT __declspec(dllimport) #define POLYVOX_HELPER_EXPORT __declspec(dllexport) #define POLYVOX_HELPER_LOCAL + #define POLYVOX_DEPRECATED __declspec(deprecated) #else + #define POLYVOX_DEPRECATED __attribute__((deprecated)) #if __GNUC__ >= 4 #define POLYVOX_HELPER_IMPORT __attribute__ ((visibility("default"))) #define POLYVOX_HELPER_EXPORT __attribute__ ((visibility("default")))