]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/attributes.h
Annotate deprecated functions as such
[libs/core.git] / source / core / attributes.h
diff --git a/source/core/attributes.h b/source/core/attributes.h
new file mode 100644 (file)
index 0000000..6531698
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef MSP_CORE_ATTRIBUTES_H_
+#define MSP_CORE_ATTRIBUTES_H_
+
+#if __cplusplus >= 201402L
+#define DEPRECATED [[deprecated]]
+#elif defined(__GNUC__)
+#define DEPRECATED __attribute__((deprecated))
+#elif defined(__MSC_VER)
+#define DEPRECATED __declspec(deprecated)
+#endif
+
+#endif