compiler complains about signed bit fields. And I think that warning
is really ok.
* src/vm/suck.c (scandir_filter): Changed the signature define, as
only linux seems to use const.
Joseph Wenninger
Christian Thalinger
- $Id: global.h 5013 2006-06-06 11:22:56Z twisti $
+ $Id: global.h 5021 2006-06-07 12:19:27Z twisti $
*/
typedef void (*functionptr) (void); /* generic function pointer */
typedef u1* methodptr;
-typedef int bool; /* boolean data type */
+typedef unsigned int bool; /* boolean data type */
-#define true 1
-#define false 0
+#define true 1
+#define false 0
/* immediate data union */
Changes:
- $Id: suck.c 5020 2006-06-07 12:10:17Z twisti $
+ $Id: suck.c 5021 2006-06-07 12:19:27Z twisti $
*/
*******************************************************************************/
-#if defined(__DARWIN__)
-static int scandir_filter(struct dirent *a)
-#else
+#if defined(__LINUX__)
static int scandir_filter(const struct dirent *a)
+#else
+static int scandir_filter(struct dirent *a)
#endif
{
s4 namlen;