libjingle: use _stricmp instead of deprecated stricmp.
BUG=N/A R=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/25869004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7447 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a73a678e25
commit
a4351a045d
@ -28,6 +28,7 @@
|
|||||||
#include "talk/p2p/base/transportdescription.h"
|
#include "talk/p2p/base/transportdescription.h"
|
||||||
|
|
||||||
#include "talk/p2p/base/constants.h"
|
#include "talk/p2p/base/constants.h"
|
||||||
|
#include "webrtc/base/stringutils.h"
|
||||||
|
|
||||||
namespace cricket {
|
namespace cricket {
|
||||||
|
|
||||||
@ -40,7 +41,7 @@ bool StringToConnectionRole(const std::string& role_str, ConnectionRole* role) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (size_t i = 0; i < ARRAY_SIZE(roles); ++i) {
|
for (size_t i = 0; i < ARRAY_SIZE(roles); ++i) {
|
||||||
if (stricmp(roles[i], role_str.c_str()) == 0) {
|
if (_stricmp(roles[i], role_str.c_str()) == 0) {
|
||||||
*role = static_cast<ConnectionRole>(CONNECTIONROLE_ACTIVE + i);
|
*role = static_cast<ConnectionRole>(CONNECTIONROLE_ACTIVE + i);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -69,4 +70,3 @@ bool ConnectionRoleToString(const ConnectionRole& role, std::string* role_str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace cricket
|
} // namespace cricket
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user