Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_compiler_attrs.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| /* Declare the memory alignment in Bytes. */ | /* Declare the memory alignment in Bytes. */ | ||||
| #if defined(_WIN32) && !defined(FREE_WINDOWS) | #if defined(_WIN32) && !defined(FREE_WINDOWS) | ||||
| # define ATTR_ALIGN(x) __declspec(align(x)) | # define ATTR_ALIGN(x) __declspec(align(x)) | ||||
| #else | #else | ||||
| # define ATTR_ALIGN(x) __attribute__((aligned(x))) | # define ATTR_ALIGN(x) __attribute__((aligned(x))) | ||||
| #endif | #endif | ||||
| #if defined(__GNUC__) | |||||
| # define DEPRECATED(replacement) __attribute__((deprecated("", replacement))) | |||||
| #elif defined(_MSC_VER) | |||||
| # define DEPRECATED(replacement) __declspec(deprecated(replacement)) | |||||
| #else | |||||
| # define DEPRECATED(replacement) | |||||
| #endif | |||||