mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
Add an empty main() in win32_hresult_test when not on Windows
This commit is contained in:
@ -10,14 +10,15 @@
|
|||||||
|
|
||||||
#include <boost/system/error_code.hpp>
|
#include <boost/system/error_code.hpp>
|
||||||
#include <boost/config/pragma_message.hpp>
|
#include <boost/config/pragma_message.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
|
||||||
|
|
||||||
#if !defined(BOOST_WINDOWS_API)
|
#if !defined(BOOST_WINDOWS_API)
|
||||||
|
|
||||||
BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_WINDOWS_API is not defined" )
|
BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_WINDOWS_API is not defined" )
|
||||||
|
int main() {}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
Reference in New Issue
Block a user