bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9960: Compiling Emacs trunk with MSVC


From: Eli Zaretskii
Subject: bug#9960: Compiling Emacs trunk with MSVC
Date: Sat, 05 Nov 2011 18:10:38 +0200

> From: Óscar Fuentes <ofv@wanadoo.es>
> Cc: cschol2112@googlemail.com,  fabrice.popineau@supelec.fr,  
> 9960@debbugs.gnu.org
> Date: Sat, 05 Nov 2011 16:51:55 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Actually, it's better to say
> >
> >  #ifdef _MSC_VER
> >  typedef unsigned short mode_t;
> >  #endif
> >
> > since that is how MS headers define it in their sys/stat.h.
> 
> Why not
> 
>   #ifdef _MSC_VER
>   #include "sys/stat.h"
>   #endif
> 
> ?

Because at least some versions of Microsoft's stat.h don't define
mode_t, but instead use "unsigned short" literally in `struct stat'
definition.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]