__uuidof redefined warning in juce_win32_ComSmartPtr.h


#1

MinGW 64 (v3.1.0) has this macro already defined. Would it be correct to change the line 32 from

#ifndef _MSC_VER
template<typename Type> struct UUIDGetter { static CLSID get() { jassertfalse; return CLSID(); } };
#define __uuidof(x)  UUIDGetter<x>::get()
#endif

to

#ifndef __uuidof
...

Thanks.

 

 


#2

Oh, glad to hear they've finally added that. Sure, I guess it could be 

#if ! (defined (_MSC_VER) || defined (__uuidof))