Fix g_array_append_val compilation on Windows
G_GNUC_EXTENSION isn't available with MSVC. To ensure that we are not using it with the MSVC compiler, we check for _MSC_VER directly rather than relying on the G_OS_WIN32 macro. This is because the _WIN32 macro may be defined when using a different compiler, such as ICC. #2845 (closed) !3129 (merged)
Fix #2845 (closed)
Edited by William Roy