Fix definition of `mode_t'.

This commit is contained in:
Christoph Scholtes 2011-11-05 11:16:01 -06:00
parent 3ad924ba1e
commit 1e8110e753

View file

@ -345,11 +345,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
# define restrict
#endif
/* Define to `int' if <sys/types.h> does not define. */
#ifdef __GNUC__
/* No action required for gcc */
#else /* MSVC */
#define mode_t int
/* `mode_t' is not defined for MSVC. Define. */
#ifdef _MSC_VER
typedef unsigned short mode_t;
#endif
/* A va_copy replacement for MSVC. */