VirtualBox

Changeset 40507 in vbox for trunk/include


Ignore:
Timestamp:
Mar 16, 2012 10:17:43 PM (13 years ago)
Author:
vboxsync
Message:

iprt/string.h: indent.

File:
1 edited

Legend:

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

    r40123 r40507  
    3333#include <iprt/err.h> /* for VINF_SUCCESS */
    3434#if defined(RT_OS_LINUX) && defined(__KERNEL__)
    35 RT_C_DECLS_BEGIN
     35  RT_C_DECLS_BEGIN
    3636# include <linux/string.h>
    37 RT_C_DECLS_END
     37  RT_C_DECLS_END
    3838
    3939#elif defined(IN_XF86_MODULE) && !defined(NO_ANSIC)
    40 RT_C_DECLS_BEGIN
     40  RT_C_DECLS_BEGIN
    4141# include "xf86_ansic.h"
    42 RT_C_DECLS_END
     42  RT_C_DECLS_END
    4343
    4444#elif defined(RT_OS_FREEBSD) && defined(_KERNEL)
    45 RT_C_DECLS_BEGIN
    46 /** @todo
    47  * XXX: Very ugly hack to get things build on recent FreeBSD builds. They have
    48  * memchr now and we need to include param.h to get __FreeBSD_version and make
    49  * memchr available based on the version below or we can't compile the kernel
    50  * module on older versions anymore.
    51  *
    52  * But including param.h here opens Pandora's box because we clash with a few
    53  * defines namely PVM and PAGE_SIZE. We can safely undefine PVM here but not
    54  * PAGE_SIZE because this results in build errors sooner or later. Luckily this
    55  * define is in a header included by param.h (machine/param.h). We define the
    56  * guards here to prevent inclusion of it if PAGE_SIZE was defined already.
    57  *
    58  * @todo aeichner: Search for an elegant solution and cleanup this mess ASAP!
    59  */
     45  RT_C_DECLS_BEGIN
     46  /** @todo
     47   * XXX: Very ugly hack to get things build on recent FreeBSD builds. They have
     48   * memchr now and we need to include param.h to get __FreeBSD_version and make
     49   * memchr available based on the version below or we can't compile the kernel
     50   * module on older versions anymore.
     51   *
     52   * But including param.h here opens Pandora's box because we clash with a few
     53   * defines namely PVM and PAGE_SIZE. We can safely undefine PVM here but not
     54   * PAGE_SIZE because this results in build errors sooner or later. Luckily this
     55   * define is in a header included by param.h (machine/param.h). We define the
     56   * guards here to prevent inclusion of it if PAGE_SIZE was defined already.
     57   *
     58   * @todo aeichner: Search for an elegant solution and cleanup this mess ASAP!
     59   */
    6060# ifdef PAGE_SIZE
    6161#  define _AMD64_INCLUDE_PARAM_H_
     
    7171   */
    7272# define memmove(dst, src, size) bcopy(src, dst, size)
    73 RT_C_DECLS_END
     73  RT_C_DECLS_END
    7474
    7575#elif defined(RT_OS_SOLARIS) && defined(_KERNEL)
Note: See TracChangeset for help on using the changeset viewer.

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