CMakeLists: Bump C++ compilation from gnu++0x to c++1y

This commit is contained in:
Lioncash 2015-09-06 04:10:40 -04:00
parent 4fc71e9708
commit 8b027f6ed7
2 changed files with 2 additions and 2 deletions

View File

@ -867,7 +867,7 @@ add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND})
########################################
# Start compiling our code
#
add_definitions(-std=gnu++0x)
add_definitions(-std=c++1y)
# These aren't actually needed for C11/C++11
# but some dependencies require them (LLVM, libav).

View File

@ -190,7 +190,7 @@ static void ExceptionThread(mach_port_t port)
msg_out.flavor = 0;
msg_out.new_stateCnt = 0;
}
msg_out.Head.msgh_size = offsetof(typeof(msg_out), new_state) + msg_out.new_stateCnt * sizeof(natural_t);
msg_out.Head.msgh_size = offsetof(__typeof__(msg_out), new_state) + msg_out.new_stateCnt * sizeof(natural_t);
send_msg = &msg_out.Head;
send_size = msg_out.Head.msgh_size;