VirtualBox

Changeset 67769 in vbox for trunk/include


Ignore:
Timestamp:
Jul 4, 2017 10:24:55 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116679
Message:

iprt/string.h: removed C++ hack for the 'new' keyword. We don't need it anymore as we never compile Linux R0 code with a C++ compiler. Furthermore the hack did not always work, for instance not for replacing %[new] in cmpxchg.h.

File:
1 edited

Legend:

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

    r67334 r67769  
    3333#include <iprt/err.h> /* for VINF_SUCCESS */
    3434#if defined(RT_OS_LINUX) && defined(__KERNEL__)
    35   RT_C_DECLS_BEGIN
    36 # define new newhack /* string.h: strreplace */
     35  /* no C++ hacks ('new' etc) here anymore! */
    3736# include <linux/string.h>
    38 # undef new
    39   RT_C_DECLS_END
    4037
    4138#elif defined(IN_XF86_MODULE) && !defined(NO_ANSIC)
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