We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b892a91 commit 5810411Copy full SHA for 5810411
1 file changed
include/osdp_export.h
@@ -48,6 +48,16 @@
48
49
/* ---------- Deprecation (with message) ---------- */
50
51
+/*
52
+ * Undefine API_DEPRECATED before redefining it. On macOS the SDK header
53
+ * <os/availability.h> defines API_DEPRECATED with a different signature
54
+ * (platform/version specifiers, not a plain string), which causes macro
55
+ * expansion errors when osdp.h uses OSDP_DEPRECATED_EXPORT("msg").
56
+ */
57
+#ifdef API_DEPRECATED
58
+#undef API_DEPRECATED
59
+#endif
60
+
61
/* Prefer C++ [[deprecated("msg")]] if available, otherwise compiler specifics. */
62
#if defined(__cplusplus) && API_HAS_CPP_ATTR(deprecated)
63
/* [[deprecated("msg")]] supported */
0 commit comments