Skip to content

Commit

Permalink
Add test with <windows.h>. Refs #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Apr 14, 2024
1 parent 07105a0 commit ddd3051
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ run crc_test.cpp
run crc_test2.cpp ;

run pr15_test.cpp ;
compile issue25_test.cpp ;

run quick.cpp ;
20 changes: 20 additions & 0 deletions test/issue25_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2024 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt)

#if !defined(_WIN32)

#include <boost/config/pragma_message.hpp>

BOOST_PRAGMA_MESSAGE( "Test skipped because _WIN32 is not defined" )

#else

#include <windows.h>
#include <boost/crc.hpp>

#endif

int main()
{
}

0 comments on commit ddd3051

Please sign in to comment.