From bb8eb8ace1f5cf3eccbcffd866430725ca8b9b36 Mon Sep 17 00:00:00 2001 From: SFGrenade <25555417+SFGrenade@users.noreply.github.com> Date: Sun, 29 Sep 2024 12:41:57 +0300 Subject: [PATCH 1/2] add HEDLEY_IMPORT_CLASSES define --- hedley.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hedley.h b/hedley.h index 8a713e6..5dbce3a 100644 --- a/hedley.h +++ b/hedley.h @@ -1647,10 +1647,16 @@ HEDLEY_DIAGNOSTIC_POP #if defined(HEDLEY_IMPORT) # undef HEDLEY_IMPORT #endif +#if defined(HEDLEY_IMPORT_CLASSES) +# undef HEDLEY_IMPORT_CLASSES +#endif #if defined(_WIN32) || defined(__CYGWIN__) # define HEDLEY_PRIVATE # define HEDLEY_PUBLIC __declspec(dllexport) # define HEDLEY_IMPORT __declspec(dllimport) +# if defined(__cplusplus) +# define HEDLEY_IMPORT_CLASSES HEDLEY_IMPORT +# endif #else # if \ HEDLEY_HAS_ATTRIBUTE(visibility) || \ @@ -1674,6 +1680,9 @@ HEDLEY_DIAGNOSTIC_POP # define HEDLEY_PUBLIC # endif # define HEDLEY_IMPORT extern +# if defined(__cplusplus) +# define HEDLEY_IMPORT_CLASSES +# endif #endif #if defined(HEDLEY_NO_THROW) From eb6c54a665a69616e044437c056fd2e58ed3dc27 Mon Sep 17 00:00:00 2001 From: SFGrenade <25555417+SFGrenade@users.noreply.github.com> Date: Sun, 29 Sep 2024 11:43:15 +0200 Subject: [PATCH 2/2] typo --- hedley.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hedley.h b/hedley.h index 5dbce3a..8acc558 100644 --- a/hedley.h +++ b/hedley.h @@ -1647,15 +1647,15 @@ HEDLEY_DIAGNOSTIC_POP #if defined(HEDLEY_IMPORT) # undef HEDLEY_IMPORT #endif -#if defined(HEDLEY_IMPORT_CLASSES) -# undef HEDLEY_IMPORT_CLASSES +#if defined(HEDLEY_IMPORT_CLASS) +# undef HEDLEY_IMPORT_CLASS #endif #if defined(_WIN32) || defined(__CYGWIN__) # define HEDLEY_PRIVATE # define HEDLEY_PUBLIC __declspec(dllexport) # define HEDLEY_IMPORT __declspec(dllimport) # if defined(__cplusplus) -# define HEDLEY_IMPORT_CLASSES HEDLEY_IMPORT +# define HEDLEY_IMPORT_CLASS HEDLEY_IMPORT # endif #else # if \ @@ -1681,7 +1681,7 @@ HEDLEY_DIAGNOSTIC_POP # endif # define HEDLEY_IMPORT extern # if defined(__cplusplus) -# define HEDLEY_IMPORT_CLASSES +# define HEDLEY_IMPORT_CLASS # endif #endif