update pvmp3dec cmake , support windows
This commit is contained in:
parent
a8555aadda
commit
1254471cc2
|
|
@ -62,9 +62,16 @@ if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h)
|
||||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h "#pragma once\n#define OSCL_UNUSED_ARG(x) (void)(x)")
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h "#pragma once\n#define OSCL_UNUSED_ARG(x) (void)(x)")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WINDOWS OR NX_WINDOWS)
|
||||||
|
target_compile_options(pvmp3dec PRIVATE
|
||||||
|
#-fsanitize=signed-integer-overflow
|
||||||
|
/FI ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
|
||||||
|
#
|
||||||
|
)
|
||||||
|
else()
|
||||||
target_compile_options(pvmp3dec PRIVATE
|
target_compile_options(pvmp3dec PRIVATE
|
||||||
#-fsanitize=signed-integer-overflow
|
#-fsanitize=signed-integer-overflow
|
||||||
-include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
|
-include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
|
||||||
#
|
#
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -139,9 +139,7 @@
|
||||||
|
|
||||||
uint16 pvmp3_decode_huff_cw_tab0(tmp3Bits *pMainData)
|
uint16 pvmp3_decode_huff_cw_tab0(tmp3Bits *pMainData)
|
||||||
{
|
{
|
||||||
#if (CC_PLATFORM != CC_PLATFORM_NX_WINDOWS)
|
|
||||||
OSCL_UNUSED_ARG(pMainData);
|
OSCL_UNUSED_ARG(pMainData);
|
||||||
#endif
|
|
||||||
return(0);
|
return(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue