Jacek Caban (@jacek) commented about include/rpcndr.h:
typedef void (__RPC_USER *NDR_NOTIFY_ROUTINE)(void); typedef void (__RPC_USER *NDR_NOTIFY2_ROUTINE)(boolean flag);
-#define DECLSPEC_UUID(x) +#ifndef DECLSPEC_UUID +# if defined(_MSC_VER) && (_MSC_VER >= 1100) && defined (__cplusplus)
It's also supported on mingw targets when `-fms-extensions` is used. I think that using `__has_declspec_attribute` would be more portable and precise. Unfortunately, it's not supported on the actual MSVC, but maybe it's worth having something like: ``` #ifndef __has_declspec_attribute # #ifdef _MSC_VER # define __has_declspec_attribute(x) 1 # else # define __has_declspec_attribute(x) 0 # endif #endif ```