Skip to content

Commit f3af7b7

Browse files
committed
Added deprecation macro to OSX
1 parent 4c84e46 commit f3af7b7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Release/include/compat/apple_compat.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@ typedef struct _SYSTEMTIME {
8585
#define YieldProcessor() __asm__ __volatile__ ("pause")
8686

8787
#define UNREFERENCED_PARAMETER(x) (void)x
88-
#define _ASSERTE(x) //std::assert(x)
88+
#define _ASSERTE(x) assert(x)
89+
90+
#ifdef CASABLANCA_DEPRECATION_NO_WARNINGS
91+
#define CASABLANCA_DEPRECATED(x)
92+
#else
93+
#define CASABLANCA_DEPRECATED(x) __attribute__((deprecated(x)))
94+
#endif
8995

9096
#include <string>
9197

0 commit comments

Comments
 (0)