Tizen Version Check at Compile time

Tizen Version Check at Compile time

BY 02 Oct 2015 Native Application Development

hi, everyone.

I’m porting my Tizen 2.3.1 application to Tizen 2.4.0b

while I’m working, I found that some functions are defiend at different header path.

(e.g. to use libcurl apis, #include <curl.h> in 2.3.1 and #include <curl/curl.h> in 2.4.0b)

so, assuring compatibility 2.3.1 and 2.4.0b on my Tizen application, I wanna include right header file at compile time. 

somthing like.

#if ???? // if sdk version is 2.3.1
#include <curl.h>
#endif

#if ???? // if Tizen version is 2.4.0b
#include <curl/curl.h>
#endif

Is there defined macro to check tizen version?

 
Written by