From ea1a0047d45bb880f7a8a3efd4c45c5c4e3f4af2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 10 Aug 2022 15:00:52 -0400 Subject: Define JALV_BEGIN_DECLS and define JALV_END_DECLS One lines good, three lines bad. --- src/frontend.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/frontend.h') diff --git a/src/frontend.h b/src/frontend.h index 68e6863..774796d 100644 --- a/src/frontend.h +++ b/src/frontend.h @@ -4,6 +4,7 @@ #ifndef JALV_UI_H #define JALV_UI_H +#include "attributes.h" #include "options.h" #include "types.h" @@ -11,9 +12,7 @@ #include -#ifdef __cplusplus -extern "C" { -#endif +JALV_BEGIN_DECLS // Interface that must be implemented by UIs @@ -49,8 +48,6 @@ jalv_frontend_open(Jalv* jalv); int jalv_frontend_close(Jalv* jalv); -#ifdef __cplusplus -} // extern "C" -#endif +JALV_END_DECLS #endif // JALV_UI_H -- cgit v1.2.1