delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/29/17:23:46

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Thu, 29 Jun 2000 23:22:45 +0200
Message-Id: <200006292122.XAA02938@mail.arco.de>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: include incompatibilities
From: towo AT computer DOT org

I had lamented about incompatible changes in include files.
May I repeat the practical essence of my previous mail which is the 
question: How can these things be detected by #ifdef's without 
referring to actual system specifics as below?

#include <errno.h>
#ifdef __CYGWIN__	/* and version > something ... ! */
#define sys_nerr _sys_nerr
#define sys_errlist _sys_errlist
#endif

(On "classical" systems, the exported names are without underlines - 
why do these name manglings have to be imposed on us?)

Regards,
Thomas


: I installed a complete new Cygwin 1.1.1 now, and uninstalled B20.
: As my application did not work anymore it seemed I had to recompile it.
: 
: First, it did not compile anymore.
: There was a recent mail here apparently related to the problem 
: about sys_errno and sys_errlist. Obviously someone thought it would be 
: fun just to rename these two and waste thousands of developers' time 
: world-wide (who have to adapt their software after finding out what's 
: going on) by introducing incompatibilities with long-established Unix 
: standards. Or is there any real reason for this game?
: 
: Now, it does compile but only with a warning about this completely 
: superfluous "const" stuff in the new errno definition. I was annoyed 
: already when the SuSe Linux distribution had introduced some similar 
: nonsense (and some other nonsense where #include <linux/termios.h> is 
: now needed instead of just <termios.h>).
: All this voguish "assumedly-modern C" junk only increases portability 
: problems and wastes developers' time. It's nothing but a nuisance.
: 
: Could people who play around with definitions in an incompatible way 
: please at least provide information on how to detect their patch with 
: #ifdef's? I have no idea how to handle the "const" crap in a general way.
: 
: Kind regards,
: Thomas Wolff

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019