Originally published on the old depletionmode / 2of1 blog (archived copy).
I wrote some Direct2D compatibility headers to allow for cross-compilation using MingW or mingw-w64.
These should allow for the compilation of windows programs which wish to make use of the Direct2D APIs.
You can download the latest version of the headers from here.
Update: There is currently an issue with these headers. Read about it here…