Hum! You can:
fopen("dir-to-test/__deleteme__", "w");
If it succeeds, dir-to-test exists then call fclose and
remove("dir-to-test/__deleteme__").Use some random name instead of __deleteme__ It does not just test that directory exists but also it is writable. If you know that a file may exist in the directory you're looking for, use fopen "r" on that file. It does not totally replace stat or fstat. Some system implement access(...) you can try. C. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergey Korshunoff Sent: samedi 7 novembre 2015 01:33 To: [email protected] Subject: Re: [Tinycc-devel] "mormalize_inc_dirs" > WinXP SP3 32bit, MinGW(tcc self compilation test) Using the compiled > tcc to recompile tcc itself fails with windows.h not found. > I have to reverting this commit to recover. Anyone know solution for stat? From Google: "stat" not working on Windows XP using v14_xp platform ... stat() does not work for me on Cygwin/Windows - C / C++ Portable way to check if directory exists? _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
