diff options
author | David Robillard <d@drobilla.net> | 2022-08-10 15:00:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:51:09 -0400 |
commit | ea1a0047d45bb880f7a8a3efd4c45c5c4e3f4af2 (patch) | |
tree | 4230451df83f039361f1106689bce42c119e32d1 /src/port.h | |
parent | 97cfde95c365a2f33b6a14b29b5cd5b9c6397616 (diff) | |
download | jalv-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/port.h')
-rw-r--r-- | src/port.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -4,6 +4,7 @@ #ifndef JALV_PORT_H #define JALV_PORT_H +#include "attributes.h" #include "lv2_evbuf.h" #include "lilv/lilv.h" @@ -11,9 +12,7 @@ #include <stddef.h> #include <stdint.h> -#ifdef __cplusplus -extern "C" { -#endif +JALV_BEGIN_DECLS enum PortFlow { FLOW_UNKNOWN, FLOW_INPUT, FLOW_OUTPUT }; @@ -31,8 +30,6 @@ struct Port { float control; ///< For control ports, otherwise 0.0f }; -#ifdef __cplusplus -} // extern "C" -#endif +JALV_END_DECLS #endif // JALV_PORT_H |