- Timestamp:
- Jan 2, 2015 12:42:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h
r53693 r53697 406 406 # include <iprt/string.h> 407 407 # include <iprt/time.h> 408 # include <stdlib.h> 409 # include <string.h> 410 411 # undef gethrtime 408 412 # define gethrtime() RTTimeNanoTS() 413 # undef strcasecmp 409 414 # define strcasecmp(a_psz1, a_psz2) RTStrICmp(a_psz1, a_psz2) 415 # undef strncasecmp 410 416 # define strncasecmp(a_psz1, a_psz2, a_cch) \ 411 RTStrNICmp(a_psz1, a_psz2, a_cch)412 417 # undef assert 413 418 # define assert(expr) Assert(expr) … … 415 420 /* This isn't necessarily making things easier at first, but allows EF and 416 421 such later on when things doesn't work right. */ 417 # include <stdlib.h> 418 # include <string.h> 422 # undef malloc 419 423 # define malloc(a_cbMem) RTMemAlloc(a_cbMem) 424 # undef realloc 420 425 # define realloc(a_pvOld, a_cbMem) RTMemRealloc(a_pvOld, a_cbMem) 426 # undef calloc 421 427 # define calloc(a_cbItem, a_cItems) RTMemAllocZ((size_t)(a_cbItem) * (a_cItems)) 428 # undef free 422 429 # define free(a_pvMem) RTMemFree(a_pvMem) 430 # undef strdup 423 431 # define strdup(a_psz) RTStrDup(a_psz) 432 # undef strndup 424 433 # define strndup(a_psz, a_cchMax) RTStrDupN(a_psz, a_cchMax) 434 # undef strlcpy 425 435 # define strlcpy(a_pszDst, a_pszSrc, a_cbDst) ((void)RTStrCopy(a_pszDst, a_cbDst, a_pszSrc)) 426 436
Note:
See TracChangeset
for help on using the changeset viewer.