The sys/cdefs.h include file contains the following two tests:
#if __STDC_VERSION__ >= 199901L
#if !(__STDC_VERSION__ >= 199901L)
As far as I could tell __STDC_VERSION__ is defined by the C compiler
only if the "-std=c99" argument is provided and is never defined by
the C++ compiler, regardless what the -std= argument is. So if I use
the "-Wundef" argument, I get two annoying warnings for each compiled
file. At the moment I'm appeasing the compiler by passing
"-D__STDC_VERSION__=0" in the command line, but it would be nice if
the tests in cdefs.h were replaced by
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#if defined(__STDC_VERSION__) && !(__STDC_VERSION__ >= 199901L)
Should I submit a bug report?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
Done: http://code.google.com/p/android/issues/detail?id=14627