Re: [PATCH:2] Export symbols when compiling a Cruntime library
Earnie Boyd <earnie_boyd-/[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <[email protected]> |
Casper Hornstrup wrote: > > > ==snip== > > > > > > > > Index: include/io.h > > > =================================================================== > > > RCS file: /cvsroot/mingw/runtime/include/io.h,v > > > retrieving revision 1.4 > > > diff -u -r1.4 io.h > > > --- include/io.h 29 Nov 2001 04:26:33 -0000 1.4 > > > +++ include/io.h 15 Jun 2002 11:43:07 -0000 > > > @@ -125,6 +125,7 @@ > > > int _mkdir (const char*); > > > char* _mktemp (char*); > > > int _rmdir (const char*); > > > +int _chmod (const char*, int); > > > > > This is also in sys/stat.h. Should we remove from sys/stat.h ?. > > According to http://doc.ddart.net/chm/vsinc.chm. _chmod is defined only > in io.h. Not in sys/stat.h. > Well, it's probably in sys/stat.h to aid the porters. POSIX says it should be in sys/stat.h. What does ANSI say about this? I don't think we should remove it from sys/stat.h. There are other items in io.h that actually belong in direct.h instead of io.h, e.g.: rmdir, but direct.h includes io.h so it's not been a problem. Perhaps the better change for MinGW would be to include sys/stat.h within io.h. Earnie. _______________________________________________________________ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/