diff --git a/bochs/gui/gtk_enh_dbg_osdep.cc b/bochs/gui/gtk_enh_dbg_osdep.cc index 6c0a402ba..96d182b3d 100644 --- a/bochs/gui/gtk_enh_dbg_osdep.cc +++ b/bochs/gui/gtk_enh_dbg_osdep.cc @@ -17,7 +17,10 @@ #if BX_DEBUGGER && BX_DEBUGGER_GUI +#include +#if GTK_MAJOR_VERSION == (2) #define GTK_DISABLE_DEPRECATED +#endif #include #include #include