[Live-devel] About how to Build LiveMedia with C++ Builder 5.0.

David Wu davidw at aten-ca.com
Wed Jan 26 11:27:03 PST 2005


> #ifdef __BORLANDC__
> #define _setmode setmode
> #define _O_BINARY O_BINARY
> #define _strnicmp strnicmp
> #define fabsf(x) fabs(x)
> #endif

Yes, there is setmode in C++ Builder's lib. But "inputfile.cpp" and "outputfile.cpp" include "UsageEnvironment.hh" instead of "Media.hh".
So, in "UsageEnvironment.hh", add this: 
#ifdef __BORLANDC__
#define _setmode setmode
#define _O_BINARY O_BINARY
#endif

In "Media.hh", add this: 
#ifdef __BORLANDC__
#define _strnicmp strnicmp
#define fabsf(x) fabs(x)
#endif

I have tried the above. It works.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live.com/pipermail/live-devel/attachments/20050126/6e0682b8/attachment.html


More information about the live-devel mailing list