You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only use __attribute__((constructor)) if supported (#66)
* Only use __attribute__((constructor)) if supported
The HAS_CONSTRUCTOR check didn't do anything, since we tried to use
__attribute__((constructor)) whether it was defined or not. That caused
a build failure on MSVC.
Also, we shouldn't add the constructor attribute from a public header,
since it's only relevant while building the library, and is conditioned
on a config.h macro that isn't visible outside the library. Move
constructor handling directly to the one call site that needs it.
* meson: simplify constructor support check
0 commit comments