mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
34 lines
746 B
C
34 lines
746 B
C
|
/**
|
||
|
* This file has no copyright assigned and is placed in the Public Domain.
|
||
|
* This file was originally part of the w64 mingw-runtime package.
|
||
|
*/
|
||
|
|
||
|
/* Workaround unistd.h for MS compilers */
|
||
|
|
||
|
#ifndef _MSC_VER
|
||
|
#error This header should only be used with Microsoft compilers
|
||
|
#endif
|
||
|
|
||
|
#include <windows.h>
|
||
|
|
||
|
#ifndef _UNISTD_H_
|
||
|
#define _UNISTD_H_
|
||
|
|
||
|
/* mode_t is used in the libcdio headers */
|
||
|
#ifndef _MODE_T_DEFINED
|
||
|
#define _MODE_T_DEFINED
|
||
|
typedef unsigned short mode_t;
|
||
|
#endif /* _MODE_T_DEFINED */
|
||
|
|
||
|
/* ssize_t is also not available (copy/paste from MinGW) */
|
||
|
#ifndef _SSIZE_T_DEFINED
|
||
|
#define _SSIZE_T_DEFINED
|
||
|
#undef ssize_t
|
||
|
#ifdef _WIN64
|
||
|
typedef __int64 ssize_t;
|
||
|
#else
|
||
|
typedef int ssize_t;
|
||
|
#endif /* _WIN64 */
|
||
|
#endif /* _SSIZE_T_DEFINED */
|
||
|
|
||
|
#endif
|