pkgsrc/chat/xchat-systray-integration/patches/patch-ae
minskim acb94c0b93 Do not define variables in headers; define them in .c files instead.
Otherwise, they cause link errors on Darwin.
2006-07-06 22:04:03 +00:00

34 lines
834 B
Text

$NetBSD: patch-ae,v 1.1 2006/07/06 22:04:03 minskim Exp $
--- src/libs/traycoreengine.h.orig 2004-04-30 05:38:10.000000000 -0700
+++ src/libs/traycoreengine.h
@@ -35,20 +35,20 @@ MYICON loadicons(char* filename ,char* t
void clean_up();
//xchat plugin var
-xchat_plugin *ph;
-xchat_context *flash_ctx;
-xchat_context *focus_ctx;
+extern xchat_plugin *ph;
+extern xchat_context *flash_ctx;
+extern xchat_context *focus_ctx;
-GHashTable *servers_names;
-gint status;
+extern GHashTable *servers_names;
+extern gint status;
#ifndef _WIN32_
- GtkWidget *tray_icon_image;
- GtkWidget *tray_icon;
- GtkTooltips *tray_icon_tooltip;
+ extern GtkWidget *tray_icon_image;
+ extern GtkWidget *tray_icon;
+ extern GtkTooltips *tray_icon_tooltip;
#else
- NOTIFYICONDATA tray_icon;
+ extern NOTIFYICONDATA tray_icon;
#endif
#endif