Skip to content

Commit

Permalink
silence stl dll export warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
virgesmith committed Oct 22, 2020
1 parent 1ef4cdd commit 9d2c327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NewOrder.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace py = pybind11;
#if !defined(NEWORDER_EXPORT)
#if defined(_MSC_VER)
#define NEWORDER_EXPORT __declspec(dllexport)
// silence dll export warnings for STL objects
#pragma warning(disable:4521)
#else
#define NEWORDER_EXPORT __attribute__ ((visibility("default")))
#endif
Expand Down

0 comments on commit 9d2c327

Please sign in to comment.