提交 b42e8bce 编写于 作者: V Vadim Barkov

Added PNG_UNUSED macro in contrib/powerpc/linux{_aux}.c

上级 b1be7846
......@@ -35,6 +35,8 @@ png_have_vsx(png_structp png_ptr)
char input[MAXLINE];
char *token = NULL;
PNG_UNUSED(png_ptr)
f = fopen("/proc/cpuinfo", "r");
if (f != NULL)
{
......
......@@ -22,7 +22,11 @@
static int
png_have_vsx(png_structp png_ptr)
{
const unsigned long auxv = getauxval( AT_HWCAP );
PNG_UNUSED(png_ptr)
if(auxv & (PPC_FEATURE_HAS_ALTIVEC|PPC_FEATURE_HAS_VSX ))
return 1;
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册