jhasse / poly2tri

2D constrained Delaunay triangulation library
BSD 3-Clause "New" or "Revised" License
439 stars 89 forks source link

Add dllexport/dllimport definitions. #33

Closed starseeker closed 2 years ago

starseeker commented 3 years ago

For building as a shared library (particularly on Windows) add logic defining logic supporting the declspec(dllexport)/declspec(dllimport) style declarations.

jhasse commented 3 years ago

Thanks! Do you know if there's a way to do this without adding P2T_EXPORT to every function declaration?

starseeker commented 3 years ago

Unfortunately, that's the best way I know of.