gtk: fix potentially build error on gtk < 2.24 (ubuntu 10.04 lts)

This commit is contained in:
punkrockguy318 2011-10-21 02:31:34 +00:00
parent 3fcec22d2b
commit 1d664128d4
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,14 @@
#include "../../fceulua.h"
#endif
// Fix compliation errors for older version of GTK (Ubuntu 10.04 LTS)
#if GTK_MINOR_VERSION < 24 && GTK_MAJOR_VERSION == 2
#define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX
#define gtk_combo_box_text_new gtk_combo_box_new
#define gtk_combo_box_text_get_active_text gtk_combo_box_get_active_text
#define gtk_combo_box_text_append_text gtk_combo_box_append_text
#endif
void toggleSound(GtkWidget* check, gpointer data);
void loadGame ();
void closeGame();