1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

Problem with extern extern in header

* include/libxml/globals.h: LIBXML_DLL_IMPORT should not be
  followed by extern
* include/libxml/xmlmemory.h: fix the same problem but in a comment
This commit is contained in:
Daniel Veillard
2009-09-07 15:20:24 +02:00
parent 594e5dfb48
commit 82cf412da8
2 changed files with 6 additions and 6 deletions

View File

@@ -362,7 +362,7 @@ XMLPUBFUN void * * XMLCALL __xmlStructuredErrorContext(void);
#define xmlStructuredErrorContext \ #define xmlStructuredErrorContext \
(*(__xmlStructuredErrorContext())) (*(__xmlStructuredErrorContext()))
#else #else
LIBXML_DLL_IMPORT extern void * xmlStructuredErrorContext; LIBXML_DLL_IMPORT void * xmlStructuredErrorContext;
#endif #endif
XMLPUBFUN int * XMLCALL __xmlGetWarningsDefaultValue(void); XMLPUBFUN int * XMLCALL __xmlGetWarningsDefaultValue(void);

View File

@@ -88,11 +88,11 @@ typedef char *(XMLCALL *xmlStrdupFunc)(const char *str);
/* /*
* The 4 interfaces used for all memory handling within libxml. * The 4 interfaces used for all memory handling within libxml.
LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree; LIBXML_DLL_IMPORT xmlFreeFunc xmlFree;
LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc; LIBXML_DLL_IMPORT xmlMallocFunc xmlMalloc;
LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMallocAtomic; LIBXML_DLL_IMPORT xmlMallocFunc xmlMallocAtomic;
LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc; LIBXML_DLL_IMPORT xmlReallocFunc xmlRealloc;
LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup; LIBXML_DLL_IMPORT xmlStrdupFunc xmlMemStrdup;
*/ */
/* /*