comparison inlinedefs.h @ 31:39901e11b1aa

inlinedefs is a hack, so hack it up
author David A. Holland
date Mon, 20 Dec 2010 06:54:59 -0500
parents 411b28d78483
children 0921c47b4f22
comparison
equal deleted inserted replaced
30:76c114899f63 31:39901e11b1aa
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE. 27 * SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef __c99inline
31
30 #if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__) 32 #if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
31 /* gcc's non-C99 inline semantics */ 33 /* gcc's non-C99 inline semantics */
32 #define __c99inline extern inline 34 #define __c99inline extern inline
33 #elif defined(__STDC__) && __STDC_VERSION__ >= 199901L 35 #elif defined(__STDC__) && __STDC_VERSION__ >= 199901L
34 /* C99 */ 36 /* C99 */
36 #else 38 #else
37 /* something else; static inline is safest */ 39 /* something else; static inline is safest */
38 #define __c99inline static inline 40 #define __c99inline static inline
39 #endif 41 #endif
40 42
43 #endif