On Wed, 1 Dec 2021 at 21:26, Mladen Turk <mt...@apache.org> wrote: > So I tried few Microsoft Visual Studio versions... > > #1 Visual Studio 2008 > >cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DAPR_BUILD_TESTAPR=ON > -- The C compiler identification is MSVC 15.0.30729.1 > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > > >ninja > ... > C:\Workplace\apacheapr\trunk\xml\apr_xml_xmllite.c(629) : error C4233: > nonstandard extension used : '__uuidof' keyword only supported in C++, not > C > Hi Mladen,
What Windows SDK do you use with Visual Studio 2008? The code in question is: [[[ hr = CreateXmlReader(&IID_IXmlReader, &parser->xp->xml_reader, NULL); ]]] In recent Windows SDK IID_IXmlReader is defined as following: [[ static const IID _IID_IXmlReader = { 0x7279FC81, 0x709D, 0x4095, { 0xB6, 0x3D, 0x69, 0xFE, 0x4B, 0x0D, 0x90, 0x30 } }; static const IID _IID_IXmlWriter = { 0x7279FC88, 0x709D, 0x4095, { 0xB6, 0x3D, 0x69, 0xFE, 0x4B, 0x0D, 0x90, 0x30 } }; static const IID _IID_IXmlResolver = { 0x7279FC82, 0x709D, 0x4095, { 0xB6, 0x3D, 0x69, 0xFE, 0x4B, 0x0D, 0x90, 0x30 } }; #define IID_IXmlReader _IID_IXmlReader #define IID_IXmlWriter _IID_IXmlWriter #define IID_IXmlResolver _IID_IXmlResolver ]] So no uuidof used in recent Windows SDK. Btw Visual Studio 2008 support ended April 10, 2018 [1]. [1] https://devblogs.microsoft.com/visualstudio/end-of-support-for-visual-studio-2008-in-one-year/ -- Ivan Zhakov