Skip to content

Commit 5b3bee5

Browse files
committed
feat: add static before smartptr__free to allow multi-file inclusion
1 parent 6f831cf commit 5b3bee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smartptr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#define smartptr_func_ptr(func) __attribute__((cleanup(func)))
5656

5757
#ifdef smartptr__setting_SUPPORT_FREE
58-
void smartptr__free(void *ptr)
58+
static void smartptr__free(void *ptr)
5959
{
6060
free(*(void **)ptr);
6161
}

0 commit comments

Comments
 (0)