arkdb/arkproxy
configure.cmake
:859
CHECK_C_SOURCE_COMPILES("
void foo(int *x) { }
int main() {
int a __attribute__((cleanup(foo)));
return 0;
}"
HAVE_ATTRIBUTE_CLEANUP
)
CHECK_C_SOURCE_COMPILES("
void foo(int *x) { }
int main() {
int a __attribute__((cleanup(foo)));
return 0;
}"
HAVE_ATTRIBUTE_CLEANUP
)
try_compile(HAVE_ATTRIBUTE_CLEANUP SOURCE_FROM_CONTENT attribute_cleanup.c [=[
void cleanup(int *i) {}
int main() {
__attribute__((cleanup(cleanup))) int i = 0;
}
]=])