#469 stdio.h fileno/_fileno definitions

closed-fixed
nobody
2003-12-13
2003-12-11
No

Since the 1.15 revision of stdio.h, some builds have been
failing with a gcc error of the form:

/usr/i686-pc-mingw32/include/stdio.h:388: error: syntax
error before '*' token

This occurs whene the preprocessor symbol `fileno' has
been previously defined to be `_fileno'.

For example:

,-----------------------
| #define fileno _fileno
| #include "stdio.h"
| main () { exit(1); }
`-----------------------

reliably generates this error.

The attached patch will correct the problem. This
moves the definition of `_fileno' in stdio.h until after
`fileno' is declared.

This problem was encountered in the Windows/no-
cygwin build of Emacs 21.x.

-- Michael

Discussion

  • Danny Smith

    Danny Smith - 2003-12-13
    • status: open --> closed-fixed
     
  • Danny Smith

    Danny Smith - 2003-12-13

    Logged In: YES
    user_id=11494

    Fixed in CVS
    Danny

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks