src/main.c

changeset 10263
aa2350263bcd
parent 10252
1de5b85062d0
child 10297
b36800725b7a
equal deleted inserted replaced
10262:19c34497cd7e 10263:aa2350263bcd
583 sn_display_unref(sn_display); 583 sn_display_unref(sn_display);
584 } 584 }
585 } 585 }
586 #endif /* HAVE_STARTUP_NOTIFICATION */ 586 #endif /* HAVE_STARTUP_NOTIFICATION */
587 587
588 #ifndef _WIN32
588 static char *gaim_find_binary_location(void *symbol, void *data) 589 static char *gaim_find_binary_location(void *symbol, void *data)
589 { 590 {
590 static char *fullname = NULL; 591 static char *fullname = NULL;
591 static gboolean first = TRUE; 592 static gboolean first = TRUE;
592 593
630 } 631 }
631 632
632 fullname = basebuf; 633 fullname = basebuf;
633 return strdup(fullname); 634 return strdup(fullname);
634 } 635 }
635 636 #endif /* #ifndef _WIN32 */
636 637
637 /* FUCKING GET ME A TOWEL! */ 638 /* FUCKING GET ME A TOWEL! */
638 #ifdef _WIN32 639 #ifdef _WIN32
639 int gaim_main(HINSTANCE hint, int argc, char *argv[]) 640 int gaim_main(HINSTANCE hint, int argc, char *argv[])
640 #else 641 #else
670 }; 671 };
671 672
672 #ifdef DEBUG 673 #ifdef DEBUG
673 opt_debug = 1; 674 opt_debug = 1;
674 #endif 675 #endif
676 #ifndef _WIN32
675 br_set_locate_fallback_func(gaim_find_binary_location, argv[0]); 677 br_set_locate_fallback_func(gaim_find_binary_location, argv[0]);
678 #endif
676 #ifdef ENABLE_NLS 679 #ifdef ENABLE_NLS
677 bindtextdomain(PACKAGE, LOCALEDIR); 680 bindtextdomain(PACKAGE, LOCALEDIR);
678 bind_textdomain_codeset(PACKAGE, "UTF-8"); 681 bind_textdomain_codeset(PACKAGE, "UTF-8");
679 textdomain(PACKAGE); 682 textdomain(PACKAGE);
680 #endif 683 #endif

mercurial