Browse Source

tray, unix: make pointers g_object_ref and g_object_ref_sink static

Fixes:  https://github.com/libsdl-org/SDL/issues/12908.
(cherry picked from commit 016ba86f9368ae535930390669d770cdafa255c6)
Ozkan Sezer 3 months ago
parent
commit
29a4a4a5d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/tray/unix/SDL_tray.c

+ 2 - 2
src/tray/unix/SDL_tray.c

@@ -58,8 +58,8 @@ typedef enum
 static gulong (*g_signal_connect_data)(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags);
 static gulong (*g_signal_connect_data)(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags);
 static void (*g_object_unref)(gpointer object);
 static void (*g_object_unref)(gpointer object);
 static gchar *(*g_mkdtemp)(gchar *template);
 static gchar *(*g_mkdtemp)(gchar *template);
-gpointer (*g_object_ref_sink)(gpointer object);
-gpointer (*g_object_ref)(gpointer object);
+static gpointer (*g_object_ref_sink)(gpointer object);
+static gpointer (*g_object_ref)(gpointer object);
 
 
 // glib_typeof requires compiler-specific code and includes that are too complex
 // glib_typeof requires compiler-specific code and includes that are too complex
 // to be worth copy-pasting here
 // to be worth copy-pasting here