mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:05:48 +00:00
Added this because the crtdll files seem to need it
svn path=/trunk/; revision=171
This commit is contained in:
parent
c2059de8af
commit
804bfa6fb9
2 changed files with 93 additions and 0 deletions
26
reactos/include/sys/djtypes.h
Normal file
26
reactos/include/sys/djtypes.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
|
||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#ifndef __DJ_sys_djtypes_h_
|
||||
#define __DJ_sys_djtypes_h_
|
||||
|
||||
#define __DJ_clock_t typedef int clock_t;
|
||||
#define __DJ_gid_t typedef int gid_t;
|
||||
#define __DJ_off_t typedef int off_t;
|
||||
#define __DJ_pid_t typedef int pid_t;
|
||||
#define __DJ_size_t typedef long unsigned int size_t;
|
||||
#define __DJ_ssize_t typedef int ssize_t;
|
||||
#define __DJ_time_t typedef unsigned int time_t;
|
||||
#define __DJ_uid_t typedef int uid_t;
|
||||
#define __DJ_va_list typedef void *va_list;
|
||||
|
||||
#if defined(__cplusplus) && ( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
|
||||
/* wchar_t is now a keyword in C++ */
|
||||
#define __DJ_wchar_t
|
||||
#else
|
||||
/* but remains a typedef in C */
|
||||
#define __DJ_wchar_t typedef int wchar_t;
|
||||
#endif
|
||||
|
||||
#define __DJ_wint_t typedef int wint_t;
|
||||
|
||||
#endif
|
67
reactos/include/sys/types.h
Normal file
67
reactos/include/sys/types.h
Normal file
|
@ -0,0 +1,67 @@
|
|||
/* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
|
||||
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
||||
#ifndef __dj_include_sys_types_h_
|
||||
#define __dj_include_sys_types_h_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
||||
|
||||
#ifndef __STRICT_ANSI__
|
||||
|
||||
#include <sys/djtypes.h>
|
||||
|
||||
typedef int dev_t;
|
||||
typedef int ino_t;
|
||||
typedef int mode_t;
|
||||
typedef int nlink_t;
|
||||
|
||||
__DJ_gid_t
|
||||
#undef __DJ_gid_t
|
||||
#define __DJ_gid_t
|
||||
__DJ_off_t
|
||||
#undef __DJ_off_t
|
||||
#define __DJ_off_t
|
||||
__DJ_pid_t
|
||||
#undef __DJ_pid_t
|
||||
#define __DJ_pid_t
|
||||
//__DJ_size_t
|
||||
#undef __DJ_size_t
|
||||
#define __DJ_size_t
|
||||
__DJ_ssize_t
|
||||
#undef __DJ_ssize_t
|
||||
#define __DJ_ssize_t
|
||||
__DJ_uid_t
|
||||
#undef __DJ_uid_t
|
||||
#define __DJ_uid_t
|
||||
|
||||
#ifndef _POSIX_SOURCE
|
||||
|
||||
/* Allow including program to override. */
|
||||
#ifndef FD_SETSIZE
|
||||
#define FD_SETSIZE 256
|
||||
#endif
|
||||
|
||||
typedef struct fd_set {
|
||||
unsigned char fd_bits [((FD_SETSIZE) + 7) / 8];
|
||||
} fd_set;
|
||||
|
||||
#define FD_SET(n, p) ((p)->fd_bits[(n) / 8] |= (1 << ((n) & 7)))
|
||||
#define FD_CLR(n, p) ((p)->fd_bits[(n) / 8] &= ~(1 << ((n) & 7)))
|
||||
#define FD_ISSET(n, p) ((p)->fd_bits[(n) / 8] & (1 << ((n) & 7)))
|
||||
#define FD_ZERO(p) memset ((void *)(p), 0, sizeof (*(p)))
|
||||
|
||||
#endif /* !_POSIX_SOURCE */
|
||||
#endif /* !__STRICT_ANSI__ */
|
||||
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
|
||||
|
||||
#ifndef __dj_ENFORCE_FUNCTION_CALLS
|
||||
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !__dj_include_sys_types_h_ */
|
Loading…
Add table
Add a link
Reference in a new issue