mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Improve the wording of the message for G_UNAVAILABLE
The version number we have here is the one the function appeared in, not the max-allowed version. Therefore 'unavailable before VERSION' makes more sense than 'unavailable for VERSION'.
This commit is contained in:
parent
fecdb4f8dc
commit
96c98ce62e
@ -317,9 +317,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
|
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
|
||||||
#define G_UNAVAILABLE(maj,min) __attribute__((deprecated("Not available for " #maj "." #min)))
|
#define G_UNAVAILABLE(maj,min) __attribute__((deprecated("Not available before " #maj "." #min)))
|
||||||
#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
|
#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
|
||||||
#define G_UNAVAILABLE(maj,min) __declspec(deprecated("is not available for " #maj "." #min))
|
#define G_UNAVAILABLE(maj,min) __declspec(deprecated("is not available before " #maj "." #min))
|
||||||
#else
|
#else
|
||||||
#define G_UNAVAILABLE(maj,min)
|
#define G_UNAVAILABLE(maj,min)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user