File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ ENDIF ( EXISTS ${libSpringLobby_BINARY_DIR}/libSpringLobby_config.h OR EXISTS
1111INCLUDE_DIRECTORIES (${libSpringLobby_SOURCE_DIR} /lib)
1212INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR} )
1313
14+ INCLUDE (CheckFunctionExists)
15+
16+ SET (CMAKE_REQUIRED_INCLUDES stdio.h)
17+ CHECK_FUNCTION_EXISTS(fmemopen HAVE_FMEMOPEN)
18+ IF (HAVE_FMEMOPEN)
19+ ADD_DEFINITIONS (-DHAVE_FMEMOPEN)
20+ ENDIF (HAVE_FMEMOPEN)
21+
1422add_subdirectory ( lslutils )
1523if (LSLSERVER)
1624 add_subdirectory ( lsl )
Original file line number Diff line number Diff line change 1414#include < lslutils/logging.h>
1515
1616
17- #ifdef WIN32
17+ #if !defined(HAVE_FMEMOPEN)
1818#include < boost/filesystem.hpp>
1919// ! we need our own fmemopen implementation since its posix only
2020FILE* fmemopen (void * data, size_t size, const char * mode)
You can’t perform that action at this time.
0 commit comments