Changeset 400 for trunk


Ignore:
Timestamp:
May 11, 2010, 4:51:02 PM (9 years ago)
Author:
cameron
Message:

Add enum keyword for C compatibility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/x86_CPU_detect.h

    r399 r400  
    6969#ifdef _MSC_VER
    7070#include <intrin.h>
    71 static inline int check_CPUid1_feature(CPUid_reg reg, int CPUid_bit) {
     71static inline int check_CPUid1_feature(enum CPUid_reg reg, int CPUid_bit) {
    7272  int CPUinfo[4];
    7373  __cpuid(CPUinfo, 1);
     
    7878#ifdef __GNUC__
    7979#include <cpuid.h>
    80 static inline int check_CPUid1_feature(CPUid_reg reg, int CPUid_bit) {
     80static inline int check_CPUid1_feature(enum CPUid_reg reg, int CPUid_bit) {
    8181  unsigned int CPUinfo[4];
    8282  if (__get_cpuid(1, &CPUinfo[reg_eax], &CPUinfo[reg_ebx], &CPUinfo[reg_ecx], &CPUinfo[reg_edx]))
Note: See TracChangeset for help on using the changeset viewer.