aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-10 15:00:52 -0400
committerDavid Robillard <d@drobilla.net>2022-08-17 13:51:09 -0400
commitea1a0047d45bb880f7a8a3efd4c45c5c4e3f4af2 (patch)
tree4230451df83f039361f1106689bce42c119e32d1 /src/attributes.h
parent97cfde95c365a2f33b6a14b29b5cd5b9c6397616 (diff)
downloadjalv-ea1a0047d45bb880f7a8a3efd4c45c5c4e3f4af2.tar.gz
jalv-ea1a0047d45bb880f7a8a3efd4c45c5c4e3f4af2.tar.bz2
jalv-ea1a0047d45bb880f7a8a3efd4c45c5c4e3f4af2.zip
Define JALV_BEGIN_DECLS and define JALV_END_DECLS
One lines good, three lines bad.
Diffstat (limited to 'src/attributes.h')
-rw-r--r--src/attributes.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/attributes.h b/src/attributes.h
new file mode 100644
index 0000000..88a3e41
--- /dev/null
+++ b/src/attributes.h
@@ -0,0 +1,15 @@
+// Copyright 2022 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
+
+#ifndef JALV_ATTRIBUTES_H
+#define JALV_ATTRIBUTES_H
+
+#ifdef __cplusplus
+# define JALV_BEGIN_DECLS extern "C" {
+# define JALV_END_DECLS }
+#else
+# define JALV_BEGIN_DECLS
+# define JALV_END_DECLS
+#endif
+
+#endif // JALV_ATTRIBUTES_H