Sha256: 4ed5d7dcef6d780703cc0e02d237026fb61bf704d1b5325963bdf04f7f169fb7

Contents?: true

Size: 875 Bytes

Versions: 8

Compression:

Stored size: 875 Bytes

Contents

#ifndef _LIBARCHIVE_WIN32_H_
#define _LIBARCHIVE_WIN32_H_

#ifdef _WIN32

typedef long ssize_t;

#ifdef open
#undef open
#endif
#define open(p, f) _open((p), (f), _S_IREAD | _S_IWRITE)

#ifdef close
#undef close
#endif
#define close(f) _close(f)

#ifdef stat
#undef stat
#endif
#define stat _stat
#define lstat(p, s) _stat((p), (s))

#ifdef strerror
#undef strerror
#endif

#ifndef S_ISBLK
#define S_ISBLK(m)  (0)
#endif
#ifndef S_ISCHR
#define S_ISCHR(m)  (((m) & (_S_IFMT)) == (_S_IFCHR))
#endif
#ifndef S_ISDIR
#define S_ISDIR(m)  (((m) & (_S_IFMT)) == (_S_IFDIR))
#endif
#ifndef S_ISFIFO
#define S_ISFIFO(m) (((m) & (_S_IFMT)) == (_S_IFIFO))
#endif
#ifndef S_ISLNK
#define S_ISLNK(m)  (0)
#endif
#ifndef S_ISREG
#define S_ISREG(m)  (((m) & (_S_IFMT)) == (_S_IFREG))
#endif
#ifndef S_ISSOCK
#define S_ISSOCK(m) (0)
#endif

#endif // _WIN32

#endif // _LIBARCHIVE_WIN32_H_

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
libarchive-static-1.0.6 ext/libarchive-0.1.1/ext/libarchive_win32.h
libarchive-static-1.0.5 ext/libarchive-0.1.1/ext/libarchive_win32.h
libarchive-static-1.0.4 ext/libarchive-0.1.1/ext/libarchive_win32.h
libarchive-static-1.0.3 ext/libarchive-0.1.1/ext/libarchive_win32.h
libarchive-static-1.0.0 ext/libarchive-0.1.1/ext/libarchive_win32.h
dguerri-libarchive-0.1.2 ext/libarchive_win32.h
libarchive-0.1.0 ext/libarchive_win32.h
libarchive-0.1.1 ext/libarchive_win32.h