ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/ecb.h
(Generate patch)

Comparing libeio/ecb.h (file contents):
Revision 1.20 by root, Fri Apr 11 05:19:41 2014 UTC vs.
Revision 1.22 by root, Sun Jul 27 22:10:53 2014 UTC

23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH- 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH-
26 * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 26 * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 * OF THE POSSIBILITY OF SUCH DAMAGE. 27 * OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * Alternatively, the contents of this file may be used under the terms of
30 * the GNU General Public License ("GPL") version 2 or any later version,
31 * in which case the provisions of the GPL are applicable instead of
32 * the above. If you wish to allow the use of your version of this file
33 * only under the terms of the GPL and not to allow others to use your
34 * version of this file under the BSD license, indicate your decision
35 * by deleting the provisions above and replace them with the notice
36 * and other provisions required by the GPL. If you do not delete the
37 * provisions above, a recipient may use your version of this file under
38 * either the BSD or the GPL.
28 */ 39 */
29 40
30#ifndef ECB_H 41#ifndef ECB_H
31#define ECB_H 42#define ECB_H
32 43
311 #define ecb_decltype(x) __decltype(x) 322 #define ecb_decltype(x) __decltype(x)
312#elif ECB_GCC_VERSION(3,0) 323#elif ECB_GCC_VERSION(3,0)
313 #define ecb_decltype(x) __typeof(x) 324 #define ecb_decltype(x) __typeof(x)
314#endif 325#endif
315 326
327#if _MSC_VER >= 1300
328 #define ecb_deprecated __declspec(deprecated)
329#else
330 #define ecb_deprecated ecb_attribute ((__deprecated__))
331#endif
332
316#define ecb_noinline ecb_attribute ((__noinline__)) 333#define ecb_noinline ecb_attribute ((__noinline__))
317#define ecb_unused ecb_attribute ((__unused__)) 334#define ecb_unused ecb_attribute ((__unused__))
318#define ecb_const ecb_attribute ((__const__)) 335#define ecb_const ecb_attribute ((__const__))
319#define ecb_pure ecb_attribute ((__pure__)) 336#define ecb_pure ecb_attribute ((__pure__))
320 337
338/* http://msdn.microsoft.com/en-us/library/k6ktzx3s.aspx __declspec(noreturn) */
321#if ECB_C11 339#if ECB_C11
322 #define ecb_noreturn _Noreturn 340 #define ecb_noreturn _Noreturn
323#else 341#else
324 #define ecb_noreturn ecb_attribute ((__noreturn__)) 342 #define ecb_noreturn ecb_attribute ((__noreturn__))
325#endif 343#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines