diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2004-08-27 19:33:17 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2004-08-27 19:33:17 +0000 |
commit | e46ac635c2c28d80706f02f239bb847c7e48c34b (patch) | |
tree | edfd3169ae1ca48fbf36d7d1c6b61ccdfe50d01b /win32/include/unistd.h | |
parent | 2d5b782a786e81f3ee364210278747d8d338f065 (diff) | |
download | xine-lib-e46ac635c2c28d80706f02f239bb847c7e48c34b.tar.gz xine-lib-e46ac635c2c28d80706f02f239bb847c7e48c34b.tar.bz2 |
MINGW32 port. Engine library and most of plugins compiles now.
List of some changes:
- replaced some _MSC_VER by more common WIN32
- define INTLDIR, remove -static flag for included intl
- shared more common CFLAGS with DEBUG_CFLAGS
- use WIN32_CFLAGS for all building
- separate some flags into THREAD_CFLAGS_CONFIG,
THREAD_CFLAGS_CONFIG and ZLIB_LIB_CONFIG for public xine-config,
automatically use internal libs if necessary
- don't warn about missing X for mingw and cygwin
- libw32dll disabled for WIN32 (making native loader would be
interesting, or porting wine code to Windows? :->)
- DVB and RTP disabled for WIN32, not ported yet
- fix build and fix a warning in cdda
- fix build for nosefart and libfaad
- implement configure option --disable-freetype
- sync libxine.pc and xine-config.in
- add -liberty to goom under WIN32
- move original build files from included phread and zlib into archives
and replace them by autotools
CVS patchset: 6910
CVS date: 2004/08/27 19:33:17
Diffstat (limited to 'win32/include/unistd.h')
-rw-r--r-- | win32/include/unistd.h | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/win32/include/unistd.h b/win32/include/unistd.h index a943dbffa..23776f772 100644 --- a/win32/include/unistd.h +++ b/win32/include/unistd.h @@ -45,23 +45,43 @@ #define lstat stat #ifndef S_ISDIR -#define S_ISDIR(A) ( S_IFDIR & A ) +# define S_ISDIR(m) ((m) & _S_IFDIR) #endif -#define S_IXUSR S_IEXEC -#define S_IXGRP S_IEXEC -#define S_IXOTH S_IEXEC +#ifndef S_ISDIR +# define S_ISREG(m) ((m) & _S_IFREG) +#endif + +#ifndef S_ISDIR +# define S_ISBLK(m) 0 +#endif + +#ifndef S_ISDIR +# define S_ISCHR(m) 0 +#endif + +#ifndef S_IXUSR +# define S_IXUSR S_IEXEC +#endif + +#ifndef S_IXGRP +# define S_IXGRP S_IEXEC +#endif + +#ifndef S_IXOTH +# define S_IXOTH S_IEXEC +#endif #define M_PI 3.14159265358979323846 /* pi */ #define bzero( A, B ) memset( A, 0, B ) #ifndef strcasecmp -#define strcasecmp _stricmp +# define strcasecmp _stricmp #endif #ifndef strncasecmp -#define strncasecmp _strnicmp +# define strncasecmp _strnicmp #endif #define snprintf _snprintf |