Skip to content

Commit 6b7c72e

Browse files
Checking for __ANDROID__ macro definition instead of value.
1 parent a50e691 commit 6b7c72e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/getprogname.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#if !HAVE_GETPROGNAME
2626

27-
#if __ANDROID__
27+
#ifdef __ANDROID__
2828
extern const char *__progname;
2929
#endif /* __ANDROID */)
3030

@@ -33,7 +33,7 @@ getprogname(void)
3333
{
3434
# if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
3535
return program_invocation_short_name;
36-
# elif __ANDROID__
36+
# elif defined(__ANDROID__)
3737
return __progname;
3838
# else
3939
# error getprogname(3) is not available on this platform

0 commit comments

Comments
 (0)