From: nishi Date: Tue, 26 Mar 2024 00:48:08 +0000 (+0000) Subject: forgot to add extern C X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=38ff1808d1772df1dc0fb41afa7bc31d03ad16a4;p=libw3.git forgot to add extern C git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@264 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/W3Tag.h b/Library/W3Tag.h index 4c46fb0..d500c15 100644 --- a/Library/W3Tag.h +++ b/Library/W3Tag.h @@ -2,9 +2,17 @@ #ifndef __W3TAG_H__ #define __W3TAG_H__ +#ifdef __cplusplus +extern "C" { +#endif + #include void W3_Tag_Parse(char* data, size_t size, void (*tagfunc)(char* tagname, char* attr), void (*textfunc)(char* data)); char* W3_Tag_Attr(char* data, const char* name); +#ifdef __cplusplus +} +#endif + #endif diff --git a/Library/W3Tcl.h b/Library/W3Tcl.h index f935ec5..222ca16 100644 --- a/Library/W3Tcl.h +++ b/Library/W3Tcl.h @@ -2,8 +2,16 @@ #ifndef __W3URL_H__ #define __W3URL_H__ +#ifdef __cplusplus +extern "C" { +#endif + #include int W3_Init(Tcl_Interp* interp); +#ifdef __cplusplus +} +#endif + #endif diff --git a/Library/W3URL.h b/Library/W3URL.h index d628b32..569c0c0 100644 --- a/Library/W3URL.h +++ b/Library/W3URL.h @@ -2,6 +2,10 @@ #ifndef __W3URL_H__ #define __W3URL_H__ +#ifdef __cplusplus +extern "C" { +#endif + struct W3URL { char* protocol; char* host; @@ -14,4 +18,8 @@ struct W3URL { struct W3URL* W3_Parse_URL(const char* url); void W3_Free_URL(struct W3URL* url); +#ifdef __cplusplus +} +#endif + #endif diff --git a/W3Version.h.m4 b/W3Version.h.m4 index 274102d..239edf6 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.20F" \ +#define LIBW3_VERSION "2.20G" \ SUFFIX ifdef(`HTTP_SUPPORT', `#define LIBW3_HTTP_SUPPORT', `')