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 

Window compile error

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs
View previous topic :: View next topic  
Author Message
Charles



Joined: 06 Nov 2007
Posts: 20

PostPosted: Fri Jun 18, 2010 4:32 pm    Post subject: Window compile error Reply with quote

This was sent to me by Transmission user rb07 who's working on porting Transmission to Windows. I don't have any firsthand knowledge of this code and am just making sure that patches get sent upstream... Smile

Code:

1177   --- transmission-2.00-orig/third-party/miniupnp/miniupnpc.c     2010-06-15 20:33:16.000000000 -0500
1178   +++ transmission-2.00/third-party/miniupnp/miniupnpc.c  2010-06-17 19:15:56.000000000 -0500
1179   @@ -24,7 +24,7 @@
1180    #include <winsock2.h>
1181    #include <ws2tcpip.h>
1182    #include <io.h>
1183   -#include <IPHlpApi.h>
1184   +#include <iphlpapi.h>
1185    #define snprintf _snprintf
1186    #if defined(_MSC_VER) && (_MSC_VER >= 1400)
1187    #define strncasecmp _memicmp
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Jun 21, 2010 10:29 am    Post subject: Reply with quote

thanks.
I believe this patch is for compilation using cygwin ?
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
rb07



Joined: 31 May 2009
Posts: 8

PostPosted: Fri Jun 25, 2010 8:55 pm    Post subject: Reply with quote

miniupnp wrote:
thanks.
I believe this patch is for compilation using cygwin ?

No, Cygwin doesn't need any patch.

The change is really for cross-compiling to the Mingw target. Obviously not needed for native Mingw since Windows is by default case insensitive, but I usually cross-compile under Linux... and the change makes no difference for those case insensitive environments.
_________________
R.B.
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 -> miniupnpc Bugs 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.