puku0x / cvdrone

CV Drone (= OpenCV + AR.Drone)
https://github.com/puku0x/cvdrone/wiki/How-to-build
Other
202 stars 94 forks source link

Define for missing vsprintf_s #3

Closed vuki closed 11 years ago

vuki commented 11 years ago

Hello puku0x,

Thanks for your code, this is exactly what I needed!

I compiled your code with MinGW compiler on Windows and everything went fine with one small exception. MinGW does not have vsprintf_s function, as it's Microsoft's extension.

Could you please add these lines to ardrone.h?

#ifdef __GNUC__
#define vsprintf_s vsnprintf
#endif

It won't break anything for VisualStudio users and I won't have to modify the code after each new revision.

puku0x commented 11 years ago

Hi vuki,

Thank you for your contribution ! I just know about VisualStudio, so your opinion is really helpful.

I'm going to add them in the next commit.

Thank you again, puku0x

puku0x commented 11 years ago

Hi vuki,

The problem is solved now.

Thank you ! puku0x