From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8D4561F4B4 for ; Sun, 4 Oct 2020 00:29:00 +0000 (UTC) Received: from localhost ([::1]:33262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOrtb-0007kV-AO for normalperson@yhbt.net; Sat, 03 Oct 2020 20:28:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOrtX-0007kJ-Qw for bug-gnulib@gnu.org; Sat, 03 Oct 2020 20:28:55 -0400 Received: from ext140.multitalents.net ([173.164.249.140]:51622 helo=server01.int.multitalents.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOrtV-0000O8-02 for bug-gnulib@gnu.org; Sat, 03 Oct 2020 20:28:55 -0400 Received: from server01.int.multitalents.net (localhost [127.0.0.1]) by server01.int.multitalents.net (8.15.2/8.13.8) with ESMTP id 0940SlxW002874; Sat, 3 Oct 2020 17:28:47 -0700 (PDT) Received: from localhost (tim@localhost) by server01.int.multitalents.net (8.15.2/8.13.8/Submit) with ESMTP id 0940SlIP002871; Sat, 3 Oct 2020 17:28:47 -0700 (PDT) X-Authentication-Warning: server01.int.multitalents.net: tim owned process doing -bs Date: Sat, 3 Oct 2020 17:28:47 -0700 (PDT) From: Tim Rice X-X-Sender: tim@server01.int.multitalents.net To: Bruno Haible Subject: Re: Port getprogname module to SCO OpenServer In-Reply-To: <200221218.LiDKksLvd5@omega> Message-ID: References: <200221218.LiDKksLvd5@omega> User-Agent: Alpine 2.11 (UW2 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Received-SPF: pass client-ip=173.164.249.140; envelope-from=tim@multitalents.net; helo=server01.int.multitalents.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/03 20:28:48 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Benji Wiebe , bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Bruno, On Sat, 3 Oct 2020, Bruno Haible wrote: > Tim Rice wrote: > > > +# elif defined __SCO_VERSION__ /* SCO OpenServer/UnixWare */ > > > > While __SCO_VERSION__ covers Openserver 6 and UnixWare 7, > > what is normally used for 6 and 7 is __USLC__ for the native compiler > > and __sysv5__ for gcc > > > > Ie. > > # elif defined __USLC__ || defined __sysv5__ > > If the code depends only on the operating system, let's use a #if for > the operating system, not for the compilers (__USLC__). Because the day > clang gets ported to that operating systems, the condition would not > work any more. > > https://sourceforge.net/p/predef/wiki/OperatingSystems/ says that > _SCO_DS can be used to test for SCO OpenServer. It seems that you say that > __SCO_VERSION__ works as well. So let's use one of these. _SCO_DS is only for Openserver 5 (which the proposed patch will not work for) and __SCO_VERSION__ only works for the native compiler on OpenServer 6 and UnixWare 7. Sorry I did not make that clear before. __sysv5__ works for the GCC 7.3.0 on 6 and 7. If clang is ported, chances are extremely high it will also include the __sysv5__ manifest define. As to __SCO_VERSION__ vs __USLC__ for native compiler, I am fine with __SCO_VERSION__ in this case. In the general case, I strongly advocate __USLC__ as that is what most of us have been using for many years. > > Bruno > -- Tim Rice Multitalents tim@multitalents.net