Fix build on 64-bit platforms. Patch from Max Alekseyev <relf@os2.ru>

This commit is contained in:
Stas Degteff 2005-10-22 07:09:54 +00:00
parent 54a3490eaa
commit 98ed5a2a37
3 changed files with 4 additions and 4 deletions

View File

@ -23,9 +23,9 @@ NULL=
NULL=nul
!ENDIF
CPP=@cl.exe
CPP=@cl.exe /IC:\PROGRA~1\MICROS~2\VC98\INCLUDE
RSC=rc.exe
LINK=@link.exe
LINK=@link.exe /LIBPATH:C:\PROGRA~1\MICROS~2\VC98\LIB
!IF "$(CFG)" == "Release"
OBJ_DIR=Release

View File

@ -131,7 +131,7 @@ inline struct tm *ggmtime(const time32_t *timep)
struct tm *time = gmtime(&temp);
return time ? time : gmtime(&zero);
#else
return gmtime(&temp);
return gmtime(temp);
#endif
}

View File

@ -292,7 +292,7 @@ char *gcpuid(char *_cpuname)
cpuname( scpuid.family, scpuid.model, scpuid.vendor, _cpuname);
#elif defined(__GNUC__)
#elif defined(__GNUC__) && defined(__i386__)
asm( /* assembler code is based on code of FreeBSD kernel sources */
/* uses AT&T assembler notation */