From b373b7777ea17f7f161e7ccea1884dcb4862f203 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 19 Jul 2015 10:36:42 +0100 Subject: C++ scoping. --- include/libnslayout/nslayout.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/libnslayout/nslayout.h b/include/libnslayout/nslayout.h index a720b32..2a48690 100644 --- a/include/libnslayout/nslayout.h +++ b/include/libnslayout/nslayout.h @@ -8,6 +8,11 @@ #ifndef nslayout_nslayout_h_ #define nslayout_nslayout_h_ +#ifdef __cplusplus +extern "C" +{ +#endif + #include #include @@ -208,4 +213,8 @@ nslayout_error nslayout_layout_dirty_area( nslayout_layout *layout, nslayout_rect *area); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3