diff options
author | David Schleef <ds@entropywave.com> | 2011-03-27 06:14:06 +0000 |
---|---|---|
committer | David Schleef <ds@entropywave.com> | 2011-03-27 06:14:06 +0000 |
commit | ab8aab231a31d56e8c646142808916d7ef118321 (patch) | |
tree | 3ed25240241b78dd9afe1e7e28392d6b21a5b0ae | |
parent | 49a8b8f24df3c32be9a35f76d6c3fdf3b8ad8494 (diff) | |
download | orc-ab8aab231a31d56e8c646142808916d7ef118321.tar.gz |
x86: Fix for VS2005
-rw-r--r-- | orc/orccpu-x86.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/orc/orccpu-x86.c b/orc/orccpu-x86.c index d3fd9ed..2fdd29a 100644 --- a/orc/orccpu-x86.c +++ b/orc/orccpu-x86.c @@ -64,12 +64,19 @@ get_cpuid (orc_uint32 op, orc_uint32 *a, orc_uint32 *b, orc_uint32 *c, orc_uint3 static void get_cpuid_ecx (orc_uint32 op, orc_uint32 init_ecx, orc_uint32 *a, orc_uint32 *b, orc_uint32 *c, orc_uint32 *d) { +#if _MSC_VER >= 1500 int tmp[4]; __cpuidex(tmp, op, init_ecx); *a = tmp[0]; *b = tmp[1]; *c = tmp[2]; *d = tmp[3]; +#else + *a = 0; + *b = 0; + *c = 0; + *d = 0; +#endif } #elif defined(__GNUC__) || defined (__SUNPRO_C) |