This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ctype.h and serious programming




>From: vischne@ibm.net
>Date: Tue, 17 Feb 1998 02:42:09 GMT
>Subject: ctype.h and serious programming
>To: gnu-win32@cygnus.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@hotmail.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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]