View previous topic :: View next topic |
Author |
Message |
dreijer
Joined: 16 Mar 2010 Posts: 7
|
Posted: Wed Jun 23, 2010 4:20 pm Post subject: VS2010 and libnatpmp |
|
|
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 |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1587
|
Posted: Sat Jun 26, 2010 4:38 pm Post subject: |
|
|
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 |
|
 |
dreijer
Joined: 16 Mar 2010 Posts: 7
|
Posted: Sat Jun 26, 2010 4:50 pm Post subject: |
|
|
Take a look at the _MSC_VER and _MSC_FULL_VER preprocessor directives. |
|
Back to top |
|
 |
|