Mail Archives: cygwin/1998/02/17/06:27:05
>From: vischne AT ibm DOT net
>Date: Tue, 17 Feb 1998 02:42:09 GMT
>Subject: ctype.h and serious programming
>To: gnu-win32 AT cygnus DOT com
>
>If you've done some porting to cygwin, you'll notice that ctype.h often
>gives syntax errors. Out of curiosity, I substituted <linux/ctype.h>
>from the linux kernel source for the cygwin version (leaving the cygwin
>headers in place), and got much cleaner compiles. Is there a technical
>reason why <linux/ctype.h>, which is a pure macro version, shouldn't
>replace cygwin's <ctype.h>?
It appears that ctype.h as supplied by cygnus needs some work with the
#ifdef __GNUC__ ... #endif logic. Based on the comment "non-gcc
versions will get the library versions, and will be slightly slower" the
code should be structured as follows:
#ifdef __GNUC__
#define MACROS
#else
int _EXFUN(...)
#endif
>
>-
- \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd AT hotmail DOT com-
------ooo0O--O0ooo-------
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -