atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
227 stars 31 forks source link

Windows: dllexport/dllimport variables not emitted properly #333

Closed WebFreak001 closed 1 year ago

WebFreak001 commented 1 year ago

variables are currently always declared as extern __gshared T var;, but on windows when declared as dllimport they also need D's export attribute for them to be recognized by the linker as dllimport. (there is no dllimport attribute in D, but it seems export works here as well)

Got a fix for this, will PR with tests for it.