10.01.2013 18:28, Max Kellermann пишет: > Yes. That was just a quick example. > > This is truly crap, and I'm not even sure this is worth fixing. If > there are practical problems with int/SOCKET, I wonder if making it > "libmpdclient2b.dll" would be a better solution.
GLib uses different approach as you know. They provide separate APIs for dealing with sockets for Unix and Windows. This requires user to write several #ifdef's but makes things clear. Couldn't we consider similar approach? Existing functions would be marked as obsolete when targeting Windows. This would require 3 additional functions instead of 6. -- Denis ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team