This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

nonportable function used in GNU Fortran


The isascii function is not ANSI-C.  I don't know if it is in posix or
not.  I'm building on a system that does not have it.  The following
patch will work, but is probably not the best way to solve this
problem.  I'd recommend either reworking the code to use only ANSI-C
is* functions or using configure to check for the availability of
isascii and then supplying this macro if HAVE_ISASCII is not defined.

-Fred

Index: f/proj.h
===================================================================
RCS file: /cvsroot/gg/egcs/gcc/f/proj.h,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 proj.h
*** proj.h	1997/09/04 04:44:27	1.1.1.1
--- proj.h	1997/09/07 15:33:08
***************
*** 99,102 ****
--- 99,106 ----
  #define dmpout stderr
  #endif
  
+ #ifndef isascii
+ #define isascii(c) ((unsigned char)(c) <= 0x3F)
+ #endif
+ 
  #endif


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