gmacros.h: Complete the use of GLIB_UNAVAILABLE_MACRO

This commit
* adds GLIB_AVAILABLE_MACRO_IN_* where needed in gmacros.h, or a comment
  when such use is not possible;
* fixes GLIB_UNAVAILABLE_MACRO and GLIB_DEPRECATED_MACRO_FOR so that
  these macros print their arguments correctly.

Fixes #2376.
10 jobs for fix-glib-unavailable-macro in 15 minutes and 28 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Style Check
passed #1243781
check-todos

00:00:52

failed #1243780
allowed to fail
style-check-diff

00:00:51

 
  Build
passed #1243784
cross-android_api21_arm64

00:00:55

passed #1243785
cross-android_api28_arm64

00:01:01

passed #1243786
cross-mingw64

00:03:09

passed #1243783
debian-stable-x86_64

00:03:48

passed #1243782
fedora-x86_64

00:07:50

passed #1243787
win32-ps
msys2-mingw32

00:14:10

passed #1243788
win32-ps
vs2017-x64

00:07:16

 
  Coverage
passed #1243789
coverage

00:01:18

76.1%
 
Name Stage Failure
failed
style-check-diff Style Check
+  _GLIB_GNUC_DO_PRAGMA (GCC warning G_STRINGIFY (Deprecated pre - processor symbol \
+ : replace with #f))
+#define GLIB_UNAVAILABLE_MACRO(maj, min) \
+ _GLIB_GNUC_DO_PRAGMA (GCC warning G_STRINGIFY (Not available before maj.min))
#else
#define GLIB_DEPRECATED_MACRO
#define GLIB_DEPRECATED_MACRO_FOR(f)
Cleaning up file based variables
ERROR: Job failed: exit code 1