언어 설정

Menu
Sites
Language
Tizen Version Check at Compile time

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?

 
Edited by: BeomChan Park on 01 10월, 2015

Responses

1 댓글
Jeongsu Kim

It seems that there is no definition about tizen platform version.

But you can add curl path in tizen 2.4.0b

1. Project -> Properties -> C/C++ General -> Paths and Symbols -> GNU C(GNU C++) -> Add button, "Add directory path dialog" will be shown
2. add "${SBI_SYSROOT}/usr/include/curl"