Skip to content

Commit

Permalink
use _strcmpi for vc
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Dec 6, 2015
1 parent 8054512 commit f68c05b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/QtAV/private/factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class Factory : public Singleton<Class>
typedef T Type;
typedef Type* (*Creator)();
public:
virtual void init() {}
Type* create(const ID& id);
template<class C>
bool register_(const ID& id) { // register_<C>(id, name)
Expand Down Expand Up @@ -171,7 +170,7 @@ template<typename Id, typename T, class Class>
typename Factory<Id, T, Class>::ID Factory<Id, T, Class>::id(const char* name, bool caseSensitive) const
{
#ifdef _MSC_VER
#define strcasecmp(s1, s2) strcmpi(s1, s2)
#define strcasecmp(s1, s2) _strcmpi(s1, s2)
#endif
//need 'typename' because 'Factory<Id, T, Class>::NameMap' is a dependent scope
for (typename NameMap::const_iterator it = name_map.begin(); it!=name_map.end(); ++it) {
Expand Down

0 comments on commit f68c05b

Please sign in to comment.