public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Joel Sherrill <joel@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin/main] libc/include/sys/select.h: Use elif not elifdef
Date: Wed, 13 Mar 2024 16:28:28 +0000 (GMT)	[thread overview]
Message-ID: <20240313162828.E00043857BAB@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=176b19fbe5e77c4ee8199b3895d0299bd4f8267e

commit 176b19fbe5e77c4ee8199b3895d0299bd4f8267e
Author: Joel Sherrill <joel@rtems.org>
Date:   Wed Mar 13 09:29:36 2024 -0500

    libc/include/sys/select.h: Use elif not elifdef
    
    The cpp directive "elifdef" is only available in very recent GCC versions.
    This should be able to compile on older toolchains in C99 mode.`

Diff:
---
 newlib/libc/include/sys/select.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/include/sys/select.h b/newlib/libc/include/sys/select.h
index 8b5675640..89269400b 100644
--- a/newlib/libc/include/sys/select.h
+++ b/newlib/libc/include/sys/select.h
@@ -30,7 +30,7 @@ typedef	__sigset_t	sigset_t;
 #ifndef FD_SETSIZE
 # ifdef __CYGWIN__
 #  define FD_SETSIZE	1024
-# elifdef __rtems__
+# elif defined(__rtems__)
 #  define FD_SETSIZE	256
 # else
 #  define FD_SETSIZE	64

                 reply	other threads:[~2024-03-13 16:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20240313162828.E00043857BAB@sourceware.org \
    --to=joel@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).