Skip to content

Commit

Permalink
fix crosscompiling
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Feb 6, 2013
1 parent e8af283 commit dcb2755
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/boost/extension/impl/library_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
#include <cstring>

#if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) \
&& !defined(BOOST_DISABLE_WIN32) && !defined(__GNUC__)

&& !defined(BOOST_DISABLE_WIN32)
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
Expand All @@ -27,8 +26,7 @@
#define WIN32_LEAN_AND_MEAN
#endif
#endif

#include <Windows.h>
#include <windows.h>
namespace boost {
namespace extensions {
namespace impl {
Expand Down
6 changes: 6 additions & 0 deletions src/lslutils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ LIST( APPEND libSpringLobbyUtilsHeader ${templatesources} )
set_source_files_properties( ${libSpringLobbyUtilsHeader} PROPERTIES HEADER_FILE_ONLY 1 )
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
if(WIN32)
add_definitions(
-D_WIN32_WINNT=0x0501
-DBOOST_THREAD_USE_LIB
)
endif()
ADD_LIBRARY(lsl-utils STATIC ${libSpringLobbyHeader} ${libSpringLobbyUtilsSrc} )
TARGET_LINK_LIBRARIES(lsl-utils ${Boost_THREAD_LIBRARY})

0 comments on commit dcb2755

Please sign in to comment.