Skip to content

Commit 980b48f

Browse files
committed
fix build warning
1 parent 8088b5f commit 980b48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/humain.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void __attribute__ ((destructor)) nu_fini(void)
3535
}
3636

3737

38-
#ifdef __linux__
38+
#if defined(__linux__)
3939
/* ----------- Linux Wrapper Functions --------------------------- */
4040
/* Extern declarations of glibc actual heap functions */
4141
extern void *__libc_malloc(size_t size);
@@ -72,7 +72,7 @@ void *realloc(void *ptr, size_t size)
7272
}
7373

7474

75-
#elif __APPLE__
75+
#elif defined(__APPLE__)
7676
/* ----------- Apple Wrapper Functions --------------------------- */
7777
#define DYLD_INTERPOSE(_newfun, _orgfun) \
7878
__attribute__((used)) static struct{ const void *newfun; const void *orgfun; } _interpose_##_orgfun \

0 commit comments

Comments
 (0)