diff --git a/include/libxml/dict.h b/include/libxml/dict.h index 3028b20f..b83db59a 100644 --- a/include/libxml/dict.h +++ b/include/libxml/dict.h @@ -11,6 +11,18 @@ #ifndef __XML_DICT_H__ #define __XML_DICT_H__ +#ifdef __cplusplus +#define __XML_EXTERNC extern "C" +#else +#define __XML_EXTERNC +#endif + +/* + * The dictionary. + */ +__XML_EXTERNC typedef struct _xmlDict xmlDict; +__XML_EXTERNC typedef xmlDict *xmlDictPtr; + #include #include #include @@ -19,12 +31,6 @@ extern "C" { #endif -/* - * The dictionary. - */ -typedef struct _xmlDict xmlDict; -typedef xmlDict *xmlDictPtr; - /* * Initializer */ diff --git a/os400/libxmlrpg/dict.rpgle b/os400/libxmlrpg/dict.rpgle index d93c6ef3..c061e4c8 100644 --- a/os400/libxmlrpg/dict.rpgle +++ b/os400/libxmlrpg/dict.rpgle @@ -9,14 +9,14 @@ /if not defined(XML_DICT_H__) /define XML_DICT_H__ - /include "libxmlrpg/xmlversion" - /include "libxmlrpg/xmlTypesC" - /include "libxmlrpg/tree" - * The dictionary. d xmlDictPtr s * based(######typedef######) + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + * Initializer d xmlInitializeDict...