not use this marco on nx windows

This commit is contained in:
oahcy 2022-05-31 17:15:35 +08:00
parent 40e0ab05b8
commit e8fb999ef8
2 changed files with 3 additions and 8 deletions

View File

@ -62,16 +62,9 @@ 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)")
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
#-fsanitize=signed-integer-overflow
-include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
#
)
endif()

View File

@ -139,7 +139,9 @@
uint16 pvmp3_decode_huff_cw_tab0(tmp3Bits *pMainData)
{
#if (CC_PLATFORM != CC_PLATFORM_NX_WINDOWS)
OSCL_UNUSED_ARG(pMainData);
#endif
return(0);
}