Update min. GLib version and add Qt version checks
The document describes why and how to version check, but 1) is not up to date with respect to minimum GLib version 2) does not yet mention Qt version requirement and check. This change addresses both issues. Change-Id: Ibb56c02cf48f6a4c6270b20686ca4d6e8aaf99d1 Reviewed-on: https://code.wireshark.org/review/14669 Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
This commit is contained in:
parent
26f3a9aa84
commit
1fe8d892dd
|
@ -394,11 +394,11 @@ tmpnam is insecure and should not be used any more. Wireshark brings its
|
|||
own mkstemp implementation for use on platforms that lack mkstemp.
|
||||
Note: mkstemp does not accept NULL as a parameter.
|
||||
|
||||
Wireshark supports platforms with GLib 2.14[.x]/GTK+ 2.12[.x] or newer.
|
||||
If a Glib/GTK+ mechanism is available only in Glib/GTK+ versions newer
|
||||
than 2.14/2.12 then use "#if GLIB_CHECK_VERSION(...)" or "#if
|
||||
GTK_CHECK_VERSION(...)" to conditionally compile code using that
|
||||
mechanism.
|
||||
Wireshark supports platforms with GLib 2.16[.x]/GTK+ 2.12[.x]/Qt 4.7[.x] or
|
||||
newer. If a Glib/GTK+/Qt mechanism is available only in Glib/GTK+/Qt
|
||||
versions newer than 2.16/2.12/4.7 then use "#if GLIB_CHECK_VERSION(...)",
|
||||
"#if GTK_CHECK_VERSION(...)" or "#if QT_VERSION_CHECK(...)" to conditionally
|
||||
compile code using that mechanism.
|
||||
|
||||
When different code must be used on UN*X and Win32, use a #if or #ifdef
|
||||
that tests _WIN32, not WIN32. Try to write code portably whenever
|
||||
|
|
Loading…
Reference in New Issue