comparison inlinedefs.h @ 108:0921c47b4f22

C99INLINE, not __c99inline
author David A. Holland
date Tue, 11 Jun 2013 12:17:27 -0400
parents 39901e11b1aa
children
comparison
equal deleted inserted replaced
107:33954a07d013 108:0921c47b4f22
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
32 #if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__) 30 #if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
33 /* gcc's non-C99 inline semantics */ 31 /* gcc's non-C99 inline semantics */
34 #define __c99inline extern inline 32 #define C99INLINE extern inline
35 #elif defined(__STDC__) && __STDC_VERSION__ >= 199901L 33 #elif defined(__STDC__) && __STDC_VERSION__ >= 199901L
36 /* C99 */ 34 /* C99 */
37 #define __c99inline inline 35 #define C99INLINE inline
38 #else 36 #else
39 /* something else; static inline is safest */ 37 /* something else; static inline is safest */
40 #define __c99inline static inline 38 #define C99INLINE static inline
41 #endif 39 #endif
42
43 #endif