commit | 3ba55f8022f3d5c5ca94a3df46fa658eda791987 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Jun 08 18:11:23 2016 -0700 |
committer | Elliott Hughes <enh@google.com> | Thu Jun 09 17:40:19 2016 -0700 |
tree | 9e500c17531ea742e86de6848cc10ebca7ef28cb | |
parent | 93bae32c27f41e55e1cf9a6f5f8a05fbc1feaf1d [diff] [blame] |
Rationalize visibility. If it's C or POSIX, it's in. If it's BSD or GNU, it's guarded by __USE_BSD or __USE_GNU. Bug: https://code.google.com/p/android/issues/detail?id=194631 Change-Id: Ife51a21c2b37b060db56780d29c929805b199cb6
diff --git a/libc/include/assert.h b/libc/include/assert.h index 0a9992d..dea8382 100644 --- a/libc/include/assert.h +++ b/libc/include/assert.h
@@ -52,7 +52,7 @@ # define _assert(e) ((void)0) #else # define _assert(e) assert(e) -# if __ISO_C_VISIBLE >= 1999 +# if __STDC_VERSION__ >= 199901L # define assert(e) ((e) ? (void)0 : __assert2(__FILE__, __LINE__, __func__, #e)) # else # define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))