# HG changeset patch # User Evan Schoenberg # Date 1159489038 0 # Node ID e0a93e6fa98b8f3235f4142a16cb532b4c39f983 # Parent 01db45fdd9cb78103840869292796df35d1eb179 [gaim-migrate @ 17392] Added gaim_running_osx() and fixed a typo. committer: Tailor Script diff -r 01db45fdd9cb -r e0a93e6fa98b libgaim/protocols/oscar/family_oservice.c --- a/libgaim/protocols/oscar/family_oservice.c Thu Sep 28 08:33:58 2006 +0000 +++ b/libgaim/protocols/oscar/family_oservice.c Fri Sep 29 00:17:18 2006 +0000 @@ -215,7 +215,7 @@ * rate limiting properties (limit level, alert level, disconnect * level, etc), and a set of SNAC family/type pairs associated with * it. The rate classes, their limiting properties, and the definitions - * of which SNACs are belong to which class, are defined in the + * of which SNACs belong to which class are defined in the * Rate Response packet at login to each host. * * Logically, all rate offenses within one class count against further diff -r 01db45fdd9cb -r e0a93e6fa98b libgaim/util.c --- a/libgaim/util.c Thu Sep 28 08:33:58 2006 +0000 +++ b/libgaim/util.c Fri Sep 29 00:17:18 2006 +0000 @@ -2577,6 +2577,16 @@ #endif } +gboolean +gaim_running_osx(void) +{ +#if defined(__APPLE__) + return TRUE; +#else + return FALSE; +#endif +} + char * gaim_fd_get_ip(int fd) { diff -r 01db45fdd9cb -r e0a93e6fa98b libgaim/util.h --- a/libgaim/util.h Thu Sep 28 08:33:58 2006 +0000 +++ b/libgaim/util.h Fri Sep 29 00:17:18 2006 +0000 @@ -584,6 +584,13 @@ gboolean gaim_running_kde(void); /** + * Check if running OS X. + * + * @return TRUE if running OS X, FALSE otherwise. + */ +gboolean gaim_running_osx(void); + +/** * Returns the IP address from a socket file descriptor. * * @param fd The socket file descriptor.