aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cfuns.h11
-rw-r--r--src/include/open-axiom.h9
2 files changed, 20 insertions, 0 deletions
diff --git a/src/include/cfuns.h b/src/include/cfuns.h
index 225ce6de..932c6d2c 100644
--- a/src/include/cfuns.h
+++ b/src/include/cfuns.h
@@ -38,6 +38,10 @@
#include "open-axiom.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
OPENAXIOM_EXPORT int addtopath(char*);
OPENAXIOM_EXPORT int directoryp(char*);
OPENAXIOM_EXPORT int make_path_from_file(char*, char*);
@@ -55,8 +59,15 @@ OPENAXIOM_EXPORT char* oa_getcwd(void);
OPENAXIOM_EXPORT int oa_access_file_for_read(const char*);
OPENAXIOM_EXPORT char* oa_dirname(const char*);
OPENAXIOM_EXPORT const char* oa_get_tmpdir(void);
+OPENAXIOM_EXPORT int oa_copy_file(const char*, const char*);
+
OPENAXIOM_EXPORT double plus_infinity(void);
OPENAXIOM_EXPORT double minus_infinity(void);
OPENAXIOM_EXPORT double NANQ(void);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* OPENAXIOM_CFUNS_included */
diff --git a/src/include/open-axiom.h b/src/include/open-axiom.h
index 19cbfedf..cae21d08 100644
--- a/src/include/open-axiom.h
+++ b/src/include/open-axiom.h
@@ -65,6 +65,10 @@ typedef void* openaxiom_handle;
#include <unistd.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Do we have graphics support? */
#ifdef X_DISPLAY_MISSING
# define OPENAXIOM_HAVE_GRAPHICS 0
@@ -94,4 +98,9 @@ openaxiom_sleep(int n)
#endif
}
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* OPENAXIOM_included */