Hopefully fixed for MSVC.

This commit is contained in:
n-a-c-h
2005-10-02 18:02:35 +00:00
parent a433347a6b
commit ebb1b37c40

View File

@@ -295,8 +295,11 @@ void zstart ()
static char *int_to_asc(size_t number)
{
static char buffer[20];
char *i;
buffer[19] = '\0';
char *i = buffer+18;
i = buffer+18;
do
{
*i-- = (char)(number % 10) + '0';
@@ -304,7 +307,7 @@ static char *int_to_asc(size_t number)
return(++i);
}
char *seconds_to_asc(size_t seconds)
char *seconds_to_asc(size_t seconds)
{
static char buffer[70];
size_t hours, minutes;
@@ -338,7 +341,7 @@ static char *int_to_asc(size_t number)
}
#ifdef __WIN32__
signed int WinCheckBatteryTime();
int WinCheckBatteryTime();
#endif
extern unsigned int MessageOn;
extern unsigned int MsgCount;
@@ -346,7 +349,7 @@ extern unsigned int MsgCount;
void DisplayBatteryStatus()
{
#ifdef __WIN32__
signed int batteryTime = WinCheckBatteryTime();
int batteryTime = WinCheckBatteryTime();
if (batteryTime>0)
{