[xiph-cvs] cvs commit: vorbis-tools/include utf8.h
Ralph Giles
giles at xiph.org
Fri Jul 19 01:44:53 PDT 2002
giles 02/07/19 01:44:53
Modified: include utf8.h
Log:
Protect utf8.h from multiple inclusion and C++ mangling to facilitate linking
of vorbis-tools code into other projects. Patch from David Gasaway.
Revision Changes Path
1.3 +13 -0 vorbis-tools/include/utf8.h
Index: utf8.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/include/utf8.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- utf8.h 2001/10/02 03:03:41 1.2
+++ utf8.h 2002/07/19 08:44:52 1.3
@@ -17,7 +17,20 @@
* 3 : unknown encoding (but still converted, using '?')
*/
+#ifndef __UTF8_H
+#define __UTF8_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
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
+
+#endif /* __UTF8_H */
<p><p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list