mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Quentin Rameau <quinq@fifth.space>
To: musl@lists.openwall.com
Subject: [PATCH] features.h: define __inline to empty for pre-c99 non-gcc compilers
Date: Mon, 12 Dec 2016 21:01:26 +0100	[thread overview]
Message-ID: <20161212200126.GA27916@alpha.fifth.space> (raw)

---

After what we have discussed on IRC, I'm posting this one here so you
have it at hand!

---
 include/features.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/features.h b/include/features.h
index 3cc3e57..f4d651e 100644
--- a/include/features.h
+++ b/include/features.h
@@ -24,6 +24,8 @@
 
 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
 #define __inline inline
+#elif !defined(__GNUC__)
+#define __inline
 #endif
 
 #if __STDC_VERSION__ >= 201112L
-- 
2.10.2



             reply	other threads:[~2016-12-12 20:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12 20:01 Quentin Rameau [this message]
2016-12-17  4:12 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161212200126.GA27916@alpha.fifth.space \
    --to=quinq@fifth.space \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).