Tommi Mäkitalo <tommi@...> writes: > But I wonder, how to solve that. The problem happens, when we compile > addrinfo.cpp. The first header it includes is cxxtools/net/addrinfo.h. There > the first header is cxxtools/api.h. There is this: > > ... > > #if defined(WIN32) || defined(_WIN32) > // suppress min/max macros from win32 headers > #ifndef NOMINMAX > #define NOMINMAX > #endif > ...
Using #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) in cxxtools/api.h solves that. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
