Skip to content

Commit

Permalink
ENH: re-apply ITK symbol export definitions
Browse files Browse the repository at this point in the history
BUG: avoid redefining definition
  • Loading branch information
agravgaard committed Sep 28, 2021
1 parent ea54bc7 commit 0e9afe9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Modules/ThirdParty/Expat/src/expat/expat.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@
#include <stdlib.h>
#include "expat_external.h"

#include "expatDllConfig.h"

#if defined(_WIN32) && !defined(ITK_EXPAT_STATIC)
# if defined(ITKEXPAT_EXPORTS)
# define XMLPARSEAPI(type) __declspec( dllexport ) type __cdecl
# else
# define XMLPARSEAPI(type) __declspec( dllimport ) type __cdecl
# endif
#else
# define XMLPARSEAPI(type) type
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
2 changes: 0 additions & 2 deletions Modules/ThirdParty/Expat/src/expat/expat_external.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@
# define XML_ATTR_ALLOC_SIZE(x)
#endif

#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 0e9afe9

Please sign in to comment.