In the SDL_net you have a #warning… is there a way you could #define
COMPILER_WARNING so it’s #pragma warning under VC++ (and which ever other
compilers need that) and #warning under GCC? Or perhaps #pragma warning is
universal… I think it had somethin to do w/ blocking TCP…
In the SDL_net you have a #warning… is there a way you could #define
COMPILER_WARNING so it’s #pragma warning under VC++ (and which ever other
compilers need that) and #warning under GCC? Or perhaps #pragma warning is
universal… I think it had somethin to do w/ blocking TCP…
This is actually fixed in CVS. As soon as I merge the MacOS changes
(on my list for today), I’ll release a new version of SDL_net.
See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
compilers need that) and #warning under GCC? Or perhaps #pragma
warning is
universal… I think it had somethin to do w/ blocking TCP…
#pragma is compiler specific by definition.
- Daniel
Programmer, Epic Games Inc.
Unfortunatly, this is not possible because macros
can’t
contain pre-processor directives… and #waring
and #pragma are both pre-processor directives.
I’m having the same problem, and our solution is to
have:
#ifdef _MSC_VER
#pragma message( FILE_LINE “The warning” )
#else
#warning “The warning”
#endif
… everywhere… I know it sucks, but that’s the
best solution we’ve come up with…
Regards,
-Loren
— Joe Tennies wrote:> In the SDL_net you have a #warning… is there a way
you could #define
COMPILER_WARNING so it’s #pragma warning under VC++
(and which ever other
compilers need that) and #warning under GCC? Or
perhaps #pragma warning is
universal… I think it had somethin to do w/
blocking TCP…
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/