Skip to content

Fix building with libavformat on Windows; some code cleanup

Edward E. requested to merge cbrt64/gegl:win32-fixes into master

Without libavutil, gegl master was missing imports and would not build in MSYS2; this adds linking libavutil. I have no idea what would be the right version to test for, or why it seems unnecessary for Linux, or even if this is the right approach.

Also, some occurrences of G_OS_WIN32 preceded the inclusion of glib headers (@ell beat me to the build-breaking one :) So I reviewed every place G_OS_WIN32 is used in gegl, resulting in this probably overkill MR.

The rest is separate commits mainly for readability. Any input/criticism will be appreciated.

Edited by Edward E.

Merge request reports