Commit 6b111a3 1 parent b20e71b commit 6b111a3 Copy full SHA for 6b111a3
File tree 2 files changed +16
-7
lines changed
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -257,13 +257,13 @@ list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/fmtlib"
257
257
list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR} /include" )
258
258
list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR} /src" )
259
259
260
- # Set endianess for msgpack on ARM64 with MSVC
261
- if (MSVC )
262
- if ("${CMAKE_GENERATOR_PLATFORM} " STREQUAL "ARM64" )
263
- message (STATUS "Forcing msgpack-c to use little endian configuration" )
264
- add_compile_definitions (MSGPACK_ENDIAN_LITTLE_BYTE)
265
- endif ()
266
- endif ()
260
+ ## Set endianess for msgpack on ARM64 with MSVC
261
+ # if(MSVC)
262
+ # if("${CMAKE_GENERATOR_PLATFORM}" STREQUAL "ARM64")
263
+ # message(STATUS "Forcing msgpack-c to use little endian configuration")
264
+ # add_compile_definitions(MSGPACK_ENDIAN_LITTLE_BYTE)
265
+ # endif()
266
+ # endif()
267
267
268
268
include_directories (${APP_INCLUDE_DIRS} )
269
269
Original file line number Diff line number Diff line change 4
4
# pragma warning(disable : 4267)
5
5
#endif
6
6
7
+ // Workaround MSVC endiannes issues
8
+ #if defined(_MSC_VER ) && ( defined(_M_ARM ) || defined(_M_ARM64 ) )
9
+ # define MSGPACK_ENDIAN_LITTLE_BYTE
10
+ #endif
11
+
7
12
#include "msgpack.hpp"
8
13
14
+ #if defined(MSGPACK_ENDIAN_LITTLE_BYTE )
15
+ # undef MSGPACK_ENDIAN_LITTLE_BYTE
16
+ #endif
17
+
9
18
#ifdef _MSC_VER
10
19
# pragma warning(pop)
11
20
#endif
You can’t perform that action at this time.
0 commit comments