Mercurial > pidgin.yaz
changeset 14646:e0a93e6fa98b
[gaim-migrate @ 17392]
Added gaim_running_osx() and fixed a typo.
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Fri, 29 Sep 2006 00:17:18 +0000 |
parents | 01db45fdd9cb |
children | 18b74ed00850 |
files | libgaim/protocols/oscar/family_oservice.c libgaim/util.c libgaim/util.h |
diffstat | 3 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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) {
--- 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.