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 

miniupnp\miniupnpc.c(308) : warning C4996:

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



Joined: 14 Oct 2008
Posts: 5

PostPosted: Tue Oct 14, 2008 6:36 pm    Post subject: miniupnp\miniupnpc.c(308) : warning C4996: Reply with quote

miniupnp\miniupnpc.c(308) : warning C4996: 'memicmp': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _memicmp. See online help for details.
c:\program files\microsoft visual studio 8\vc\include\string.h(62) : see declaration of 'memicmp'
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1477

PostPosted: Wed Oct 15, 2008 9:47 am    Post subject: Re: miniupnp\miniupnpc.c(308) : warning C4996: Reply with quote

spry wrote:
miniupnp\miniupnpc.c(308) : warning C4996: 'memicmp': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _memicmp. See online help for details.
c:\program files\microsoft visual studio 8\vc\include\string.h(62) : see declaration of 'memicmp'

That warning is from VC8, I'm not sure _memicmp is recognized by VC6.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
spry



Joined: 14 Oct 2008
Posts: 5

PostPosted: Wed Oct 15, 2008 10:51 am    Post subject: Reply with quote

You can use such construction
#if defined(WIN32) && defined(_WIN32) && defined(_MSC_VER)
#if _MSC_VER >= 1400 // Visual Studio 2005 and higher
// use _memicmp
#else
//use memicmp
#endif
#endif
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 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.