summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2015-07-19 10:36:42 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2015-08-03 22:30:15 +0100
commitb373b7777ea17f7f161e7ccea1884dcb4862f203 (patch)
tree2ff4ed89afb8d8d60046cc9b5f681349b6705f0a
parent244ff9f08dd8c83baba4d44401eae0e8ebb58246 (diff)
downloadlibnslayout-b373b7777ea17f7f161e7ccea1884dcb4862f203.tar.gz
libnslayout-b373b7777ea17f7f161e7ccea1884dcb4862f203.tar.bz2
C++ scoping.
-rw-r--r--include/libnslayout/nslayout.h9
1 files changed, 9 insertions, 0 deletions
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 <libcss/libcss.h>
#include <dom/dom.h>
@@ -208,4 +213,8 @@ nslayout_error nslayout_layout_dirty_area(
nslayout_layout *layout,
nslayout_rect *area);
+#ifdef __cplusplus
+}
+#endif
+
#endif