[libdispatch-dev] libdispatch with Visual Studio

Brent Fulgham bfulgham at gmail.com
Fri Apr 15 12:04:41 PDT 2011

I spent a few minutes yesterday playing with the libdispatch sources
to see how far I could get building under Visual Studio.  As expected,
it choked when presented with various useful gcc extensions, such as
named structure initializers, differences in macro handling, and so

All of these differences are fairly easily resolved, with the
exception of the gcc-specific 'typeof' operator.  I'm not sure how to
provide similar behavior under the Visual C++ compiler, as I don't
think it has a mechanism to determine the static type of an expression
at runtime.

Can anyone comment on how this is resolved for the Apple build of
libdispatch (i.e., the version that ships with Safari/WebKit)?



More information about the libdispatch-dev mailing list