Skip to content

Commit 36d4ebd

Browse files
committed
Maybe fix unit test compile on Windows
1 parent e42bc7e commit 36d4ebd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

target/testing/test_DetectorPeakResponse.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
License along with this library; if not, write to the Free Software
2121
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2222
*/
23+
// Fix for Windows WinSock header ordering issue
24+
// Must be defined before Windows.h (or any header that includes it) is included
25+
#ifdef _WIN32
26+
#define WIN32_LEAN_AND_MEAN
27+
#include <winsock2.h>
28+
#include <windows.h>
29+
#endif
2330

2431
#define BOOST_TEST_MODULE test_DetectorPeakResponse_suite
2532
#include <boost/test/included/unit_test.hpp>

0 commit comments

Comments
 (0)