VirtualBox

Changeset 16029 in vbox


Ignore:
Timestamp:
Jan 19, 2009 5:24:01 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41713
Message:

iprt/string.h: Reverted previous FreeBSD and moved it to SUPDrvInternal.h

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/string.h

    r16027 r16029  
    4242   *  Some of the string.h stuff clashes with sys/libkern.h, so just wrap
    4343   *  it up while including string.h to keep things quiet. It's nothing
    44    *  important that's clashing, after all. Well, with 7.x it's more
    45    *  essential stuff unforuntately...
     44   *  important that's clashing, after all.
    4645   */
    47 # define strdup  strdup_string_h
    48 # define memset  memset_string_h
    49 # define memcmp  memcmp_string_h
    50 # define strchr  strchr_string_h
    51 # define strrchr strrchr_string_h
    52 # define ffsl    ffsl_string_h
    53 # define fls     fls_string_h
    54 # define flsl    flsl_string_h
     46# define strdup strdup_string_h
    5547# include <string.h>
    5648# undef strdup
    57 # undef memset
    58 # undef memcmp
    59 # undef strchr
    60 # undef strrchr
    61 # undef ffsl
    62 # undef fls
    63 # undef flsl
    6449#elif defined(RT_OS_SOLARIS) && defined(_KERNEL)
    6550  /*
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r15841 r16029  
    117117
    118118#elif defined(RT_OS_FREEBSD)
     119#   define memset  libkern_memset /** @todo these are just hacks to get it compiling, check out later. */
     120#   define memcmp  libkern_memcmp
     121#   define strchr  libkern_strchr
     122#   define strrchr libkern_strrchr
     123#   define ffs     libkern_ffs
     124#   define ffsl    libkern_ffsl
     125#   define fls     libkern_fls
     126#   define flsl    libkern_flsl
    119127#   include <sys/libkern.h>
     128#   undef  memset
     129#   undef  memcmp
     130#   undef  strchr
     131#   undef  strrchr
     132#   undef  ffs
     133#   undef  ffsl
     134#   undef  fls
     135#   undef  flsl
    120136#   include <iprt/string.h>
    121137
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette