Work around LLVM header peculiarity

Bug report: http://llvm.org/bugs/show_bug.cgi?id=21472
This commit is contained in:
Tillmann Karras committed 2014-11-04 02:29:33 +01:00
1 parent 8c981aad04
commit c34d99e40e
2 files changed
+5 -1

No files matched your search

+5
View File
@@ -764,6 +764,11 @@ add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND})
# Start compiling our code
#
add_definitions(-std=gnu++0x)
# These aren't actually needed for C11/C++11
# but some dependencies require them (LLVM, libav).
add_definitions(-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS)
add_subdirectory(Source)
-1
View File
@@ -59,6 +59,5 @@ add_dolphin_library(videocommon "${SRCS}" "${LIBS}")
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if(LIBAV_FOUND)
target_link_libraries(videocommon ${LIBS} ${LIBAV_LIBRARIES})
add_definitions(-D__STDC_CONSTANT_MACROS)
endif()
endif()