Pull in roken and use ROKEN_CPP_BEGIN/ROKEN_CPP_END instead of cdecl

This commit is contained in:
Love Hornquist Astrand
2009-08-04 20:00:24 +02:00
parent 513f59dcd4
commit abd2f29c44

View File

@@ -44,6 +44,8 @@
#include <sys/types.h>
#include <roken.h>
/*
* to select alternate encoding format
*/
@@ -80,9 +82,8 @@
*/
#define UNVIS_END 1 /* no more characters */
#include <sys/cdefs.h>
ROKEN_CPP_START
__BEGIN_DECLS
char * ROKEN_LIB_FUNCTION
rk_vis(char *, int, int, int);
char * ROKEN_LIB_FUNCTION
@@ -101,7 +102,7 @@ int ROKEN_LIB_FUNCTION
rk_strunvisx(char *, const char *, int);
int ROKEN_LIB_FUNCTION
rk_unvis(char *, int, int *, int);
__END_DECLS
ROKEN_CPP_END
#undef vis
#define vis(a,b,c,d) rk_vis(a,b,c,d)