Issue
I would like to determine during compile time what the specified TARGET_PLATFORM has been specified.
As an example, I would like to do something like the following:
#if (TARGET_PLATFORM == 21)
#include <sys/system_properties.h>
#else
#include <sys/_system_properties.h>
#endif
I would prefer an ndk built-in preprocessor, but other alternatives are also welcome.
Thanks!
Solution
#include <android/api-level.h>
#if __ANDROID_API__ == 21
....
#else
....
#endif
Answered By - Dmitry Moskalchuk
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.