soc.2012.statscollector: 2a1ab2bc: Use __APPLE__ instead of _POSIX_VERSION ...

sanket at soc.pidgin.im sanket at soc.pidgin.im
Sat Jun 2 08:55:57 EDT 2012


----------------------------------------------------------------------
Revision: 2a1ab2bc9b3cbe244cca1f0ba363686700649292
Parent:   02775aef0547d2b5a0d920a3f59f1f47ab6309f9
Author:   sanket at soc.pidgin.im
Date:     06/02/12 09:48:23
Branch:   im.pidgin.soc.2012.statscollector
URL: http://d.pidgin.im/viewmtn/revision/info/2a1ab2bc9b3cbe244cca1f0ba363686700649292

Changelog: 

Use __APPLE__ instead of _POSIX_VERSION to identify Apple systems

Though _POSIX_VERSION could be used as effectively on __APPLE__ it is
easier and more reliable to handle strings we know are going to be true.
Also this fixes a bug ``elb'' helped me identify.

Changes against parent 02775aef0547d2b5a0d920a3f59f1f47ab6309f9

  patched  libpurple/plugins/statscollector.c

-------------- next part --------------
============================================================
--- libpurple/plugins/statscollector.c	c28b5e1c8a79b94b27c7f70f5c87360c6b7c51d8
+++ libpurple/plugins/statscollector.c	5420093ae4545f16f443ad91c9c307df0e829f59
@@ -351,6 +351,8 @@ get_os_name(){
 
 #ifdef _WIN32
   name_attrib = "windows";
+#elif defined __APPLE__
+  name_attrib = "apple";
 #elif defined _POSIX_VERSION
   name_attrib = os_utsname.sysname;
 #else


More information about the Commits mailing list