[HEDLEY_IMPORT](https://github.com/nemequ/hedley/blob/d9261eeb6907b502dd06581932a6738ce4f65012/hedley.h#L1557) is specificed as `extern` which fails when used as so: ``` #ifdef PROJECT_COMPILATION #define PROJECT_API HEDLEY_PUBLIC #else #define PROJECT_API HEDLEY_IMPORT #endif class PROJECT_API example {}; ``` We would expect that `example` symbols are exported. However, when importing the result is `class extern example {};` which is invalid. A possible solution is: ``` #ifdef __cplusplus #define HEDLEY_IMPORT #else #define HEDLEY_IMPORT extern #endif ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by mattyclarkson and has received 4 comments.