From df5ec805d7b5769f7c230997385d359607f15e28 Mon Sep 17 00:00:00 2001 From: twisti Date: Wed, 7 Jun 2006 12:19:27 +0000 Subject: [PATCH] * src/vm/global.h (bool): Changed to `unsigned int', as the MIPS Pro 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. --- src/vm/global.h | 8 ++++---- src/vm/suck.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/vm/global.h b/src/vm/global.h index e8c8fb377..0fce6b9b2 100644 --- a/src/vm/global.h +++ b/src/vm/global.h @@ -33,7 +33,7 @@ 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 $ */ @@ -51,10 +51,10 @@ typedef void *voidptr; /* generic pointer */ 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 */ diff --git a/src/vm/suck.c b/src/vm/suck.c index 4d1ae1719..4b22acf80 100644 --- a/src/vm/suck.c +++ b/src/vm/suck.c @@ -28,7 +28,7 @@ Changes: - $Id: suck.c 5020 2006-06-07 12:10:17Z twisti $ + $Id: suck.c 5021 2006-06-07 12:19:27Z twisti $ */ @@ -86,10 +86,10 @@ bool suck_init(void) *******************************************************************************/ -#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; -- 2.25.1