miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VS2010 and libnatpmp

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> libnatpmp Compilation/Installation
View previous topic :: View next topic  
Author Message
dreijer



Joined: 16 Mar 2010
Posts: 7

PostPosted: Wed Jun 23, 2010 4:20 pm    Post subject: VS2010 and libnatpmp Reply with quote

Just wanted to point out that you no longer need to manually define the following two constants when compiling with VS2010:

(defined in natpmp.c)
#define EWOULDBLOCK WSAEWOULDBLOCK
#define ECONNREFUSED WSAECONNREFUSED

With the latest release of libnatpmp, the compiler spits out redefinition warnings for those two #define's.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sat Jun 26, 2010 4:38 pm    Post subject: Reply with quote

I need to find how to make a #ifdef so it works with all versions of VC.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
dreijer



Joined: 16 Mar 2010
Posts: 7

PostPosted: Sat Jun 26, 2010 4:50 pm    Post subject: Reply with quote

Take a look at the _MSC_VER and _MSC_FULL_VER preprocessor directives.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> libnatpmp Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.