Re: [AD] Request #636003

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> I'm with Vincent on this one: just use a POSIX library for Windows.
> I use MinGW as a compiler and it eats the same code as other versions
> of gcc. The only problem-case might be MSVC, which doesn't provide the
> POSIX functions.

If MinGW accepts it - and I confirm: the following functions are defined in 
io.h:

int	chdir (const char*);
char*	getcwd (char*, int);
int	mkdir (const char*);
char*	mktemp (char*);
int	rmdir (const char*);
int chmod (const char*, int);

which is in turn included by unistd.h - then MSVC is highly likely to accept 
it too, because most MinGW libc functions live in msvcrt.dll. Those in 
mingw10.dll are very specialized.

-- 
Eric Botcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/