GTK debugger: Set GTK_DISABLE_DEPRECATED only for GTK 2.

The current code fails to compile otherwise with GTK 3.
(was accidentially removed by prev commit)
This commit is contained in:
Stanislav Shwartsman 2024-03-29 16:04:17 +03:00
parent eef84bbbfc
commit af18912529

View File

@ -17,7 +17,10 @@
#if BX_DEBUGGER && BX_DEBUGGER_GUI
#include <gtk/gtkversion.h>
#if GTK_MAJOR_VERSION == (2)
#define GTK_DISABLE_DEPRECATED
#endif
#include <gtk/gtk.h>
#include <glib.h>
#include <pthread.h>