From 56bdfc8c7827cfc2ebf151553a23bdeea55883a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Feb 2020 20:02:27 +0100 Subject: Add PUGL_BEGIN_DECLS and PUGL_END_DECLS macros Just to keep the C++ noise out of the headers. --- pugl/detail/implementation.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pugl/detail/implementation.h') diff --git a/pugl/detail/implementation.h b/pugl/detail/implementation.h index b1ff264..a6914fc 100644 --- a/pugl/detail/implementation.h +++ b/pugl/detail/implementation.h @@ -27,9 +27,7 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif +PUGL_BEGIN_DECLS /** Set `blob` to `data` with length `len`, reallocating if necessary. */ void puglSetBlob(PuglBlob* dest, const void* data, size_t len); @@ -66,8 +64,6 @@ puglSetInternalClipboard(PuglView* view, const void* data, size_t len); -#ifdef __cplusplus -} /* extern "C" */ -#endif +PUGL_END_DECLS #endif // PUGL_DETAIL_IMPLEMENTATION_H -- cgit v1.2.1