]> sourceware.org Git - newlib-cygwin.git/commitdiff
* include/cygwin/config.h: Conditionalize inline __getreent()
authorBrian Dessent <brian@dessent.net>
Sat, 8 Sep 2007 10:51:37 +0000 (10:51 +0000)
committerBrian Dessent <brian@dessent.net>
Sat, 8 Sep 2007 10:51:37 +0000 (10:51 +0000)
definition on _COMPILING_NEWLIB.

winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/config.h

index d100a1574637ee47cb38524a3b2f5804037eeffb..db451fb35b1ebcd5956ce84daa9c7188a63d0e31 100644 (file)
@@ -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.
index 0c2f157f8ab3d4dc2d9077206b892ce7fbf3db6f..f0f1c8aa87f688a3dfe99593df26b4b358b2b775 100644 (file)
@@ -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
This page took 0.034543 seconds and 5 git commands to generate.