Skip to content

Commit

Permalink
Needed fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
En-En-Code committed Oct 25, 2024
1 parent ee9f38d commit a01d71f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions desmume/src/frontend/posix/gtk/utilsGTK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include "utilsGTK.h"
#include <string.h>

/*
A C++ implementation of a GtkCellRendererText subclass which handles
Expand Down
3 changes: 3 additions & 0 deletions desmume/src/frontend/posix/gtk2/utilsGTK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include "utilsGTK.h"
#include <string.h>
#include <gdk/gdkkeysyms.h>

/*
Expand Down Expand Up @@ -56,11 +57,13 @@ static void desmume_entry_nd_cell_editable_init(GtkCellEditableIface *iface);

// As defined in GObject 2.38, which is past the last release of GTK2.
// https://gitlab.gnome.org/GNOME/glib/-/blob/main/gobject/gtype.h#L2188
#ifndef G_ADD_PRIVATE
#define G_ADD_PRIVATE(TypeName) \
{ \
TypeName##_private_offset = g_type_add_instance_private( \
g_define_type_id, sizeof(TypeName##Private)); \
}
#endif

G_DEFINE_TYPE_WITH_CODE(DesmumeEntryNd, desmume_entry_nd, GTK_TYPE_EVENT_BOX,
G_ADD_PRIVATE(DesmumeEntryNd) G_IMPLEMENT_INTERFACE(
Expand Down

0 comments on commit a01d71f

Please sign in to comment.