[Tux4kids-commits] r1292 - tuxmath/trunk/src

David Bruce dbruce-guest at alioth.debian.org
Wed Jul 29 18:34:18 UTC 2009


Author: dbruce-guest
Date: 2009-07-29 18:34:18 +0000 (Wed, 29 Jul 2009)
New Revision: 1292

Modified:
   tuxmath/trunk/src/scandir.c
   tuxmath/trunk/src/scandir.h
Log:
Added __HAIKU__ symbol to OS identification list



Modified: tuxmath/trunk/src/scandir.c
===================================================================
--- tuxmath/trunk/src/scandir.c	2009-07-29 18:32:47 UTC (rev 1291)
+++ tuxmath/trunk/src/scandir.c	2009-07-29 18:34:18 UTC (rev 1292)
@@ -29,9 +29,9 @@
 #include "scandir.h"
 
 /*-----------------------------------------------------------------------
- * Here come alphasort and scandir for BeOS and SunOS
+ * Here come alphasort and scandir for BeOS/Haiku and SunOS
  *-----------------------------------------------------------------------*/
-#if defined(__BEOS__) || (defined(__sun) && defined(__SVR4))
+#if defined(__BEOS__) || defined(__HAIKU__) || (defined(__sun) && defined(__SVR4))
 
 #undef DIRSIZ
 

Modified: tuxmath/trunk/src/scandir.h
===================================================================
--- tuxmath/trunk/src/scandir.h	2009-07-29 18:32:47 UTC (rev 1291)
+++ tuxmath/trunk/src/scandir.h	2009-07-29 18:34:18 UTC (rev 1292)
@@ -19,7 +19,7 @@
 #define dirent direct
 #endif
 
-#if defined(__BEOS__) || (defined(__sun) && defined(__SVR4)) || defined(WIN32)
+#if defined(__BEOS__) || defined(__HAIKU__) || (defined(__sun) && defined(__SVR4)) || defined(WIN32)
 extern int alphasort(const void *d1, const void *d2);
 extern int scandir(const char *dirname, struct dirent ***namelist, int (*sdfilter)(struct dirent *), int (*dcomp)(const void *, const void *));
 #endif




More information about the Tux4kids-commits mailing list