snes9x/gtk/src/gtk_s9x.h

53 lines
1.3 KiB
C
Raw Normal View History

2010-09-25 17:46:12 +02:00
#ifndef __GTK_S9X_H
#define __GTK_S9X_H
#include <gtk/gtk.h>
#include "gtk_config.h"
#include "gtk_s9xcore.h"
#include "gtk_s9xwindow.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext(String)
#ifdef gettext_noop
#define N_(String) gettext_noop(String)
#else
#define N_(String) (String)
#endif
#else /* NLS is disabled */
#define _(String) (String)
#define N_(String) (String)
#define textdomain(String) (String)
#define gettext(String) (String)
#define dgettext(Domain,String) (String)
#define dcgettext(Domain,String,Type) (String)
#define bindtextdomain(Domain,Directory) (Domain)
#define bind_textdomain_codeset(Domain,Codeset) (Codeset)
#endif /* ENABLE_NLS */
#define SNES9X_GTK_AUTHORS "(c) 2007 - 2018 Brandon Wright (bearoso@gmail.com)"
#define SNES9X_GTK_VERSION "86"
2010-09-25 17:46:12 +02:00
extern Snes9xWindow *top_level;
extern Snes9xConfig *gui_config;
#if GTK_MAJOR_VERSION >= 3
#define GDK_COMPAT_WINDOW_XID(window) (gdk_x11_window_get_xid (window))
#else
2018-10-17 00:26:24 +02:00
#define GDK_WINDOWING_X11
#define GDK_IS_X11_WINDOW(window) TRUE
#define GDK_IS_X11_DISPLAY(display) TRUE
#define GDK_COMPAT_WINDOW_XID(window) (GDK_WINDOW_XWINDOW (window))
#endif
2010-09-25 17:46:12 +02:00
int S9xOpenROM (const char *filename);
void S9xNoROMLoaded ();
void S9xROMLoaded ();
2010-09-25 17:46:12 +02:00
#endif /* __GTK_S9X_H */