[Scummvm-devel] [GitHub] COMMON: add isDirectory wrapper [scummvm/scummvm-tools 0ccf174]

Bertrand Augereau bertrand_augereau at yahoo.fr
Thu Feb 24 22:10:57 CET 2011


MSVC has _stat (with a leading underscore).

--- En date de : Mer 23.2.11, Gregory Montoir <cyx at scummvm.org> a écrit :

> De: Gregory Montoir <cyx at scummvm.org>
> Objet: Re: [Scummvm-devel] [GitHub] COMMON: add isDirectory wrapper [scummvm/scummvm-tools 0ccf174]
> À: "ScummVM Developers" <scummvm-devel at lists.sourceforge.net>
> Cc: "bluegr" <noreply at github.com>
> Date: Mercredi 23 février 2011, 19h22
> On 02/23/2011 07:16 PM, bluegr
> wrote:
> > Why has a POSIX-only extension been pushed into common
> code?
> > There was also a comment that this breaks under MSVC,
> which has been removed.
> >
> > At least please add some sort of fallback for people
> who aren't using POSIX compilers.
> > Also, will S_ISDIR work under all platforms?
> >
> > https://github.com/scummvm/scummvm-tools/commit/0ccf1741ced3c114bb8244773ef503cfdd93ab41#commitcomment-280987
> >
> 
> Hi,
> 
> I am surprised stat() doesn't compile with MSVC (this is
> used by 
> encode_dxa). What is the output ?
> Anyway, would it be possible to #ifdef an equivalent ?
> 
> Gregory
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs
> and other IT data in 
> Real-Time with Splunk. Collect, index and harness all the
> fast moving IT data 
> generated by your applications, servers and devices whether
> physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain
> new business 
> insights. http://p.sf.net/sfu/splunk-dev2dev 
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel
> 


      




More information about the Scummvm-devel mailing list