<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libnet: gnuc.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>gnuc.h</h1><div class="fragment"><pre>00001 <span class="comment">/* @(#) $Header: /usr/local/www/users/anoncvs/cvs/embedaddon/libnet/doc/html/gnuc_8h-source.html,v 1.1.1.1 2012/02/21 22:14:23 misho Exp $ (LBL) */</span>
00002
00003 <span class="comment">/* Define __P() macro, if necessary */</span>
00004 <span class="preprocessor">#ifndef __P</span>
00005 <span class="preprocessor"></span><span class="preprocessor">#if __STDC__</span>
00006 <span class="preprocessor"></span><span class="preprocessor">#define __P(protos) protos</span>
00007 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00008 <span class="preprocessor"></span><span class="preprocessor">#define __P(protos) ()</span>
00009 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00010 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00011 <span class="preprocessor"></span>
00012 <span class="comment">/* inline foo */</span>
00013 <span class="preprocessor">#ifdef __GNUC__</span>
00014 <span class="preprocessor"></span><span class="preprocessor">#define inline __inline</span>
00015 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00016 <span class="preprocessor"></span><span class="preprocessor">#define inline</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00018 <span class="preprocessor"></span>
00019 <span class="comment">/*</span>
00020 <span class="comment"> * Handle new and old "dead" routine prototypes</span>
00021 <span class="comment"> *</span>
00022 <span class="comment"> * For example:</span>
00023 <span class="comment"> *</span>
00024 <span class="comment"> * __dead void foo(void) __attribute__((volatile));</span>
00025 <span class="comment"> *</span>
00026 <span class="comment"> */</span>
00027 <span class="preprocessor">#ifdef __GNUC__</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#ifndef __dead</span>
00029 <span class="preprocessor"></span><span class="preprocessor">#define __dead volatile</span>
00030 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00031 <span class="preprocessor"></span><span class="preprocessor">#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)</span>
00032 <span class="preprocessor"></span><span class="preprocessor">#ifndef __attribute__</span>
00033 <span class="preprocessor"></span><span class="preprocessor">#define __attribute__(args)</span>
00034 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00035 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00036 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00037 <span class="preprocessor"></span><span class="preprocessor">#ifndef __dead</span>
00038 <span class="preprocessor"></span><span class="preprocessor">#define __dead</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00040 <span class="preprocessor"></span><span class="preprocessor">#ifndef __attribute__</span>
00041 <span class="preprocessor"></span><span class="preprocessor">#define __attribute__(args)</span>
00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00043 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 10 13:23:37 2004 for libnet by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.4 </small></address>
</body>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>