Mercurial > pidgin
diff src/main.c @ 10263:1668fcab5968
[gaim-migrate @ 11407]
This makes win32 compile again, oops.
I also gives rid of a nss warning, and creates a leak instead. But leaking
one string in an init function is better than possibly crashing.
In general, I don't understand why it's putting /prefixtogaim/lib/gaim
in front of that, as that .so is never in that location.
committer: Tailor Script <tailor@pidgin.im>
| author | Tim Ringenbach <marv@pidgin.im> |
|---|---|
| date | Thu, 25 Nov 2004 22:03:58 +0000 |
| parents | 5ce83aad6869 |
| children | ec140184437b |
line wrap: on
line diff
--- a/src/main.c Thu Nov 25 20:48:16 2004 +0000 +++ b/src/main.c Thu Nov 25 22:03:58 2004 +0000 @@ -585,6 +585,7 @@ } #endif /* HAVE_STARTUP_NOTIFICATION */ +#ifndef _WIN32 static char *gaim_find_binary_location(void *symbol, void *data) { static char *fullname = NULL; @@ -632,7 +633,7 @@ fullname = basebuf; return strdup(fullname); } - +#endif /* #ifndef _WIN32 */ /* FUCKING GET ME A TOWEL! */ #ifdef _WIN32 @@ -672,7 +673,9 @@ #ifdef DEBUG opt_debug = 1; #endif +#ifndef _WIN32 br_set_locate_fallback_func(gaim_find_binary_location, argv[0]); +#endif #ifdef ENABLE_NLS bindtextdomain(PACKAGE, LOCALEDIR); bind_textdomain_codeset(PACKAGE, "UTF-8");
