[cfe-commits] Preliminary patch to support MSVC __declspec(property)

Will Wilson will at indefiant.com
Sat Apr 20 04:26:52 PDT 2013

Hi All,

Firstly, a huge thanks to everyone that got this patch in. It's certainly
improved MSVC compatibility by a significant margin. I've been busy testing
it against various windows code bases with positive results. However, it's
not all good news, MFC is fighting back:

  In file included from atlmfc\include\afxwin.h:70:
  In file included from atlmfc\include\atlhandler.h:22:
  In file included from atlmfc\include\atlstr.h:19:
  atlmfc\include\atlbase.h(4546,23): error : cannot take the address of an
rvalue of type 'CRITICAL_SECTION'

The problem source is:

__declspec(property(get  = get_m_csStaticDataInit)) CRITICAL_SECTION
CRITICAL_SECTION& get_m_csStaticDataInit() throw();
void EnterStaticDataCriticalSection() throw()

Any easy fixes? If not, I might have a chance to look at it later in the

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130420/fd35bc62/attachment.html>

More information about the cfe-commits mailing list