Refs #187. Use perl to generate cblas_noconst.h instead of sed.

Thank Dan Povey's patch. https://github.com/xianyi/OpenBLAS/issues/187
This commit is contained in:
Zhang Xianyi 2013-01-22 00:29:54 +08:00
parent 8cdb795438
commit 36e0982966
2 changed files with 2 additions and 2 deletions

View File

@ -39,6 +39,6 @@ else
endif
cblas_noconst.h : cblas.h
sed -e "s/\bconst\b\s*//g" cblas.h > cblas_noconst.h
perl -ane ' s/\bconst\b\s*//g; print; ' < cblas.h > cblas_noconst.h
dummy:

View File

@ -34,7 +34,7 @@ int main(int argc, char **argv) {
#ifdef USE64BITINT
printf("#define USE64BITINT\n");
#endif
printf("#define GEMM_MULTITHREAD_THRESHOLD\t%ld\n", GEMM_MULTITHREAD_THRESHOLD);
printf("#define GEMM_MULTITHREAD_THRESHOLD\t%ld\n", (long int)GEMM_MULTITHREAD_THRESHOLD);
}
return 0;