summaryrefslogtreecommitdiff
path: root/include/ouroboros/cdefs.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-13 12:09:14 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-04-13 12:14:24 +0200
commit21187cdf04f6b6697064430aac68dcf795923943 (patch)
treefb86f87679dda03cc53e06d9b0c6d3ee0ef26751 /include/ouroboros/cdefs.h
parentb43e8cd0f0858e78486752007c3640b70bf44c8d (diff)
downloadouroboros-21187cdf04f6b6697064430aac68dcf795923943.tar.gz
ouroboros-21187cdf04f6b6697064430aac68dcf795923943.zip
include: Add C++ directives in headers
Fixes #34
Diffstat (limited to 'include/ouroboros/cdefs.h')
-rw-r--r--include/ouroboros/cdefs.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/ouroboros/cdefs.h b/include/ouroboros/cdefs.h
new file mode 100644
index 00000000..da7c4732
--- /dev/null
+++ b/include/ouroboros/cdefs.h
@@ -0,0 +1,35 @@
+/*
+ * Ouroboros - Copyright (C) 2016 - 2017
+ *
+ * C Definitions
+ *
+ * Dimitri Staessens <dimitri.staessens@ugent.be>
+ * Sander Vrijders <sander.vrijders@ugent.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#ifndef OUROBOROS_CDEFS_H
+#define OUROBOROS_CDEFS_H
+
+#ifdef __cplusplus
+# define __BEGIN_DECLS extern "C" {
+# define __END_DECLS }
+#else
+# define __BEGIN_DECLS
+# define __END_DECLS
+#endif
+
+#endif /* OUROBOROS_CDEFS_H */