Commit f366c87d authored by Ralph Giles's avatar Ralph Giles
Browse files

Protect utf8.h from multiple inclusion and C++ mangling to facilitate linking

of vorbis-tools code into other projects. Patch from David Gasaway.

svn path=/trunk/vorbis-tools/; revision=3681
parent c9a44367
......@@ -17,7 +17,20 @@
* 3 : unknown encoding (but still converted, using '?')
#ifndef __UTF8_H
#define __UTF8_H
#ifdef __cplusplus
extern "C" {
void convert_set_charset(const char *charset);
int utf8_encode(const char *from, char **to);
int utf8_decode(const char *from, char **to);
#ifdef __cplusplus
#endif /* __UTF8_H */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment