From: <ev...@us...> - 2006-09-29 00:17:25
|
Revision: 17392 http://svn.sourceforge.net/gaim/?rev=17392&view=rev Author: evands Date: 2006-09-28 17:17:18 -0700 (Thu, 28 Sep 2006) Log Message: ----------- Added gaim_running_osx() and fixed a typo. Modified Paths: -------------- trunk/libgaim/protocols/oscar/family_oservice.c trunk/libgaim/util.c trunk/libgaim/util.h Modified: trunk/libgaim/protocols/oscar/family_oservice.c =================================================================== --- trunk/libgaim/protocols/oscar/family_oservice.c 2006-09-28 08:33:58 UTC (rev 17391) +++ trunk/libgaim/protocols/oscar/family_oservice.c 2006-09-29 00:17:18 UTC (rev 17392) @@ -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 Modified: trunk/libgaim/util.c =================================================================== --- trunk/libgaim/util.c 2006-09-28 08:33:58 UTC (rev 17391) +++ trunk/libgaim/util.c 2006-09-29 00:17:18 UTC (rev 17392) @@ -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) { Modified: trunk/libgaim/util.h =================================================================== --- trunk/libgaim/util.h 2006-09-28 08:33:58 UTC (rev 17391) +++ trunk/libgaim/util.h 2006-09-29 00:17:18 UTC (rev 17392) @@ -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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |