summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-22 17:51:35 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-22 17:51:35 +0000
commit3f65a7051f489f141a39faaf85dc2af489b5123e (patch)
tree84c23e570424222240d394e24a58920b7ed8e6d4 /tools
parentb2ee5bc6b68316d3cf7e43923765788b114aa192 (diff)
downloadrockbox-3f65a7051f489f141a39faaf85dc2af489b5123e.tar.gz
rockbox-3f65a7051f489f141a39faaf85dc2af489b5123e.tar.bz2
rockbox-3f65a7051f489f141a39faaf85dc2af489b5123e.zip
Move C linkage binding for c++ to exporting header files instead of includes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17609 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/rbspeex/rbspeex.h8
-rw-r--r--tools/voicefont.h10
-rw-r--r--tools/wavtrim.h11
3 files changed, 25 insertions, 4 deletions
diff --git a/tools/rbspeex/rbspeex.h b/tools/rbspeex/rbspeex.h
index 00d045c74a..2c5cb297fd 100644
--- a/tools/rbspeex/rbspeex.h
+++ b/tools/rbspeex/rbspeex.h
@@ -21,6 +21,10 @@
#include <stdbool.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
unsigned int get_long_le(unsigned char *p);
bool get_wave_metadata(FILE *fd, int *numchan, int *bps, int *sr, int *numsamples);
bool encode_file(FILE *fin, FILE *fout, float quality, int complexity,
@@ -29,6 +33,8 @@ bool encode_file(FILE *fin, FILE *fout, float quality, int complexity,
void put_ushort_le(unsigned short x, unsigned char *out);
void put_uint_le(unsigned int x, unsigned char *out);
-
+#ifdef __cplusplus
+}
+#endif
#endif
diff --git a/tools/voicefont.h b/tools/voicefont.h
index 9db6bcaf39..1f9c7fc326 100644
--- a/tools/voicefont.h
+++ b/tools/voicefont.h
@@ -27,7 +27,15 @@
#include <stdio.h>
#include <stdlib.h>
-
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output);
+#ifdef __cplusplus
+}
#endif
+#endif
+
diff --git a/tools/wavtrim.h b/tools/wavtrim.h
index 46c8ff871b..fe78c75818 100644
--- a/tools/wavtrim.h
+++ b/tools/wavtrim.h
@@ -21,7 +21,14 @@
#ifndef WAVTRIM_H
#define WAVTRIM_H
-
+
+#ifdef __cplusplus
+extern "C" {
+#endif
int wavtrim(char * filename, int maxsilence ,char* errstring,int errsize);
-
+
+#ifdef __cplusplus
+}
#endif
+#endif
+