VirtualBox

Changeset 2298 in kBuild for trunk/src/kash/shtypes.h


Ignore:
Timestamp:
Mar 1, 2009 5:18:30 AM (16 years ago)
Author:
bird
Message:

kash: no return indicators that works for both gcc and msc (not pretty, but wtf).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shtypes.h

    r2243 r2298  
    113113} shsigaction_t;
    114114
     115/* SH_NORETURN_1 must be both on prototypes and definitions, while
     116   SH_NORETURN_2 should at least be on the prototype. */
     117#ifdef _MSC_VER
     118# define SH_NORETURN_1 __declspec(noreturn)
     119# define SH_NORETURN_2
     120#else
     121# define SH_NORETURN_1
     122# define SH_NORETURN_2 __attribute__((__noreturn__));
    115123#endif
    116124
     125#endif
     126
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