VirtualBox

Changeset 85647 in vbox for trunk


Ignore:
Timestamp:
Aug 8, 2020 12:16:31 PM (4 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: VS2010 refuses to do nothrow on typedefs, so no nothrow for it. bugref:9794

File:
1 edited

Legend:

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

    r85342 r85647  
    11041104 */
    11051105#ifdef __cplusplus
    1106 # ifdef _MSC_VER
     1106# if RT_MSC_PREREQ(RT_MSC_VER_VS2015) /*?*/
    11071107#  define DECL_NOTHROW(a_Type)      __declspec(nothrow) a_Type
    11081108# elif RT_CLANG_PREREQ(6,0) || RT_GNUC_PREREQ(4,2)
     
    15311531#if RT_CLANG_PREREQ(6,0)
    15321532# define DECLCALLBACKTYPE_EX(a_RetType, a_CallConv, a_Name, a_Args) __attribute__((__nothrow__)) a_RetType a_CallConv a_Name a_Args
    1533 #elif defined(_MSC_VER) && defined(__cplusplus) && defined(_MSC_EXTENSIONS)
     1533#elif RT_MSC_PREREQ(RT_MSC_VER_VS2015) /*?*/ && defined(__cplusplus) && defined(_MSC_EXTENSIONS)
    15341534# define DECLCALLBACKTYPE_EX(a_RetType, a_CallConv, a_Name, a_Args) a_RetType a_CallConv a_Name a_Args throw()
    15351535#else
     
    15571557#elif RT_CLANG_PREREQ(6,0)
    15581558# define DECLCALLBACKPTR_EX(a_RetType, a_CallConv, a_Name, a_Args) __attribute__((__nothrow__)) a_RetType (a_CallConv * a_Name) a_Args
    1559 #elif defined(_MSC_VER) && defined(__cplusplus) && defined(_MSC_EXTENSIONS)
     1559#elif RT_MSC_PREREQ(RT_MSC_VER_VS2015) /*?*/ && defined(__cplusplus) && defined(_MSC_EXTENSIONS)
    15601560# define DECLCALLBACKPTR_EX(a_RetType, a_CallConv, a_Name, a_Args) a_RetType (a_CallConv * a_Name) a_Args throw()
    15611561#else
     
    15831583#elif RT_CLANG_PREREQ(6,0)
    15841584# define DECLCALLBACKMEMBER_EX(a_RetType, a_CallConv, a_Name, a_Args) __attribute__((__nothrow__)) a_RetType (a_CallConv *a_Name) a_Args
    1585 #elif defined(_MSC_VER) && defined(__cplusplus) && defined(_MSC_EXTENSIONS)
     1585#elif RT_MSC_PREREQ(RT_MSC_VER_VS2015) /*?*/ && defined(__cplusplus) && defined(_MSC_EXTENSIONS)
    15861586# define DECLCALLBACKMEMBER_EX(a_RetType, a_CallConv, a_Name, a_Args) a_RetType (a_CallConv *a_Name) a_Args throw()
    15871587#else
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