diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bd33d28ea..f9e545079e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ endif() if(BLACKBERRY) set(CMAKE_SYSTEM_NAME "QNX") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_CONSTANT_MACROS") endif() if (IOS OR BLACKBERRY) @@ -36,7 +37,7 @@ endif() if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(LINUX ON) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_CONSTANT_MACROS") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_CONSTANT_MACROS") if (NOT USING_GLES2) set(USE_FFMPEG ON) endif() @@ -63,7 +64,7 @@ option(IOS "Set to ON if targeting an iOS device" ${IOS}) option(USING_GLES2 "Set to ON if target device uses OpenGL ES 2.0" ${USING_GLES2}) option(USING_QT_UI "Set to ON if you wish to use the Qt frontend wrapper" ${USING_QT_UI}) option(HEADLESS "Set to OFF to not generate the PPSSPPHeadless target" ${HEADLESS}) -option(USE_FFMPEG "Build with FFMPEG support (beta)" ${USE_FFMPEG}) +option(USE_FFMPEG "Build with FFMPEG support" ${USE_FFMPEG}) if(ANDROID) if(NOT ANDROID_ABI) diff --git a/Core/HW/SimpleAT3Dec.cpp b/Core/HW/SimpleAT3Dec.cpp index f6a7e3e0a5..8454ed931a 100644 --- a/Core/HW/SimpleAT3Dec.cpp +++ b/Core/HW/SimpleAT3Dec.cpp @@ -15,9 +15,13 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. +#include "Core/HW/SimpleAT3Dec.h" +#include "Core/HW/MediaEngine.h" +#include "Core/HW/BufferQueue.h" + #ifdef USE_FFMPEG -// Urgh! Why is this needed? +// TODO: Replace all these by -D__STDC_CONSTANT_MACROS #ifdef ANDROID #ifndef UINT64_C #define UINT64_C(c) (c ## ULL) @@ -29,13 +33,6 @@ extern "C" { #include #include } -#endif // USE_FFMPEG - -#include "Core/HW/SimpleAT3Dec.h" -#include "Core/HW/MediaEngine.h" -#include "Core/HW/BufferQueue.h" - -#ifdef USE_FFMPEG struct SimpleAT3 { public: diff --git a/Core/HW/SimpleAT3Dec.h b/Core/HW/SimpleAT3Dec.h index 916fe734c4..2c54889600 100644 --- a/Core/HW/SimpleAT3Dec.h +++ b/Core/HW/SimpleAT3Dec.h @@ -17,6 +17,8 @@ #pragma once +#include + #include "base/basictypes.h" // Wraps FFMPEG in a nice interface that's drop-in compatible with diff --git a/native b/native index 6f32546357..06a7ad40b2 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit 6f32546357ce4d9cc4fea5624f35781c3068558a +Subproject commit 06a7ad40b298d815acbd5839a0e77258358ce015