From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.devel,gmane.comp.lib.gnulib.bugs Subject: Re: [Jim Meyering] Re: [Bug-gnulib] strftime merge from Emacs Date: Tue, 10 Jun 2003 23:33:26 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055284349 19551 80.91.224.249 (10 Jun 2003 22:32:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2003 22:32:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 11 00:32:27 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Prer-00053Y-00 for ; Wed, 11 Jun 2003 00:32:01 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19PrzY-0001Ay-00 for ; Wed, 11 Jun 2003 00:53:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Prh7-0000fp-Bx for emacs-devel@quimby.gnus.org; Tue, 10 Jun 2003 18:34:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Prga-0000JX-FK for emacs-devel@gnu.org; Tue, 10 Jun 2003 18:33:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19PrgO-0008Hh-Av for emacs-devel@gnu.org; Tue, 10 Jun 2003 18:33:36 -0400 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19PrgF-0008AO-2W; Tue, 10 Jun 2003 18:33:27 -0400 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.36 #1 (Debian)) id 19PrgE-0003Ud-00; Tue, 10 Jun 2003 23:33:26 +0100 Original-To: rms@gnu.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Original-cc: bug-gnulib@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15006 gmane.comp.lib.gnulib.bugs:513 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15006 Richard Stallman writes: > > [__hpux]: Include sys/_mbstate_t.h. > > Using a macro like __hpux should be done only as a last resort. > I hope there is a better way. > > One idea is to test using Autoconf for the existence of such a file > and include it if it exists. That's the proposal. > That will work provided there is no case > where that file exists but including it is harmful. The question is really whether there is any reason to think it might be harmful, i.e. why wasn't it done like that originally? If no-one knows, it seems best just to do it, as it seems unlikely to cause grief. > I haven't seen WINDOWSNT used before. > Here are some of the window-related macros I have seen: > > _WIN32 WIN32 __WIN32__ __MSDOS__ WINDOWS32 > > WINDOWSNT is what Emacs uses. It is a GNU convention that we do not > use the abbreviation "WIN" to refer to Windows. Are those names > used in any GNU packages? Gcc actually defines them. > In any case, we try hard not to use system-dependent macros like that > and prefer to use the results of configure-time tests. > > That is preferable, but with a system as different from GNU as Windows is, > code for a specific system will tend to be needed often. This should be just a matter of defining the relevant macros in or via config.nt. Similarly with MacOS.