Add POLYVOX_DEPRECATED macro to label deprecated classes and functions

This commit is contained in:
Matt Williams 2012-11-07 17:18:53 +00:00
parent 54188ce1f9
commit f2a6fa9a7f

View File

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