Workaround for GCC 3.4.5/gentoo bug: define GCFG_NO_CPUID

This commit is contained in:
Stas Degteff 2007-02-24 14:23:03 +00:00
parent a995b8f196
commit 4583e435b4
2 changed files with 7 additions and 2 deletions

View File

@ -83,3 +83,5 @@
#CPPFLAGS+=-DGCFG_NO_REGEX
# Comment to disable AreaRecycleBin keyword and feature
CPPFLAGS+=-D__INCLUDE_NEW_KEYWORDS__
# Uncomment to disable CPUID feature (compilation error in goldlib/gall/gutlvers.cpp)
#CPPFLAGS+=-DGCFG_NO_CPUID

View File

@ -49,7 +49,10 @@
#define _MAX_VNAME_LEN 12
#define _MAX_MNAME_LEN 30
#ifdef GCFG_NO_CPUID
# define gcpuid(pstr) (pstr)
# define HaveCPUID() (0)
#else
// ------------------------------------------------------------------
#if defined(_MSC_VER) && (_MSC_VER < 1400)
@ -549,7 +552,7 @@ char *gcpuid(char *_cpuname)
return _cpuname;
}
#endif // ifdef GCFG_NO_CPUID
// ------------------------------------------------------------------