Changeset 52353 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Aug 11, 2014 7:16:55 PM (10 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h
r51770 r52353 73 73 # endif 74 74 # include <memory.h> 75 # define memcmp(a,b,c) mymemcmp(a,b,c)76 int VBOXCALL mymemcmp(const void *, const void *, size_t);77 75 RT_C_DECLS_END 78 76 -
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r52204 r52353 1971 1971 1972 1972 1973 1974 /** @todo use the nocrt stuff? */1975 int VBOXCALL mymemcmp(const void *pv1, const void *pv2, size_t cb)1976 {1977 const uint8_t *pb1 = (const uint8_t *)pv1;1978 const uint8_t *pb2 = (const uint8_t *)pv2;1979 for (; cb > 0; cb--, pb1++, pb2++)1980 if (*pb1 != *pb2)1981 return *pb1 - *pb2;1982 return 0;1983 }1984 1985 1986 1973 #if 0 /* See alternative in SUPDrvA-win.asm */ 1987 1974 /**
Note:
See TracChangeset
for help on using the changeset viewer.