- in cygwin when compiling with -mno-cygwin, ssize_t is not defined. So I
moved it outside the ifndef __MINGW32__ block.
This commit is contained in:
parent
4439fe5dc7
commit
f5e8e651fe
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: osdep.h,v 1.9 2001-10-05 13:52:25 bdenney Exp $
|
||||
// $Id: osdep.h,v 1.10 2002-03-06 18:04:58 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -48,8 +48,12 @@ extern "C" {
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#ifdef WIN32
|
||||
|
||||
// Definitions that are needed for all WIN32 compilers.
|
||||
# define ssize_t long
|
||||
|
||||
#ifndef __MINGW32__
|
||||
// This is for win32 platforms EXCEPT FOR cygwin compiling with -mno-cygwin.
|
||||
// Definitions that are needed for WIN32 compilers EXCEPT FOR
|
||||
// cygwin compiling with -mno-cygwin. e.g. VC++.
|
||||
|
||||
// always return regular file.
|
||||
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
@ -57,7 +61,6 @@ extern "C" {
|
||||
|
||||
// VCPP includes also are missing these
|
||||
# define off_t long
|
||||
# define ssize_t int
|
||||
|
||||
// win32 has snprintf though with different name.
|
||||
#define snprintf _snprintf
|
||||
|
Loading…
x
Reference in New Issue
Block a user