소스 검색

Always compile `_starpu_free_unref'.

The `#ifdef' would compile it only when `-fplugin=.../starpu.so' is
used when building StarPU itself, which is not what we want.
Ludovic Courtès 14 년 전
부모
커밋
30452750c1
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/util/malloc.c

+ 0 - 2
src/util/malloc.c

@@ -239,11 +239,9 @@ int starpu_free(void *A)
 	return 0;
 	return 0;
 }
 }
 
 
-#ifdef STARPU_GCC_PLUGIN
 /* Internal convenience function, used by code generated by the GCC
 /* Internal convenience function, used by code generated by the GCC
  * plug-in.  */
  * plug-in.  */
 void _starpu_free_unref(void *p)
 void _starpu_free_unref(void *p)
 {
 {
 	(void)starpu_free(* (void **)p);
 	(void)starpu_free(* (void **)p);
 }
 }
-#endif