public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2252] [Ada] adaint.c minor reformatting
@ 2021-07-12 12:52 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-12 12:52 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6bebd55e12375b397ed187630bb57d58611dfc5f

commit r12-2252-g6bebd55e12375b397ed187630bb57d58611dfc5f
Author: Pierre-Marie de Rodat <derodat@adacore.com>
Date:   Fri Jun 25 09:22:19 2021 +0000

    [Ada] adaint.c minor reformatting
    
    gcc/ada/
    
            * adaint.c (__gnat_number_of_cpus): Replace "#ifdef" by "#if
            defined".

Diff:
---
 gcc/ada/adaint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 26be2600dd6..06a48952b99 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -2485,7 +2485,7 @@ __gnat_number_of_cpus (void)
 {
   int cores = 1;
 
-#ifdef _SC_NPROCESSORS_ONLN
+#if defined (_SC_NPROCESSORS_ONLN)
   cores = (int) sysconf (_SC_NPROCESSORS_ONLN);
 
 #elif defined (__QNX__)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-12 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 12:52 [gcc r12-2252] [Ada] adaint.c minor reformatting Pierre-Marie de Rodat

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).