mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
* include/cygwin/config.h: Conditionalize inline __getreent()
definition on _COMPILING_NEWLIB.
This commit is contained in:
parent
e5ae72300f
commit
1515ce296a
@ -1,3 +1,8 @@
|
||||
2007-09-08 Brian Dessent <brian@dessent.net>
|
||||
|
||||
* include/cygwin/config.h: Conditionalize inline __getreent()
|
||||
definition on _COMPILING_NEWLIB.
|
||||
|
||||
2007-09-06 Brian Dessent <brian@dessent.net>
|
||||
|
||||
* include/cygwin/config.h (__getreent): Define inline version.
|
||||
|
@ -37,9 +37,11 @@ extern "C" {
|
||||
compute these offsets already exists for the sake of gendef so
|
||||
we might as well just use it here. */
|
||||
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
#include "../tlsoffsets.h"
|
||||
extern char *_tlsbase __asm__ ("%fs:4");
|
||||
#define __getreent() (struct _reent *)(_tlsbase + tls_local_clib)
|
||||
#endif /* _COMPILING_NEWLIB */
|
||||
|
||||
#define __FILENAME_MAX__ (260 - 1 /* NUL */)
|
||||
#define _READ_WRITE_RETURN_TYPE _ssize_t
|
||||
|
Loading…
x
Reference in New Issue
Block a user