]> sourceware.org Git - newlib-cygwin.git/commitdiff
2004-09-15 Corinna Vinschen <vinschen@redhat.com>
authorJeff Johnston <jjohnstn@redhat.com>
Wed, 15 Sep 2004 21:44:39 +0000 (21:44 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Wed, 15 Sep 2004 21:44:39 +0000 (21:44 +0000)
        * libc/reent/impure.c (reent_data): Define as alias to impure_data
        when building for Cygwin.
        * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
        _global_impure_ptr.

newlib/ChangeLog
newlib/libc/include/sys/reent.h
newlib/libc/reent/impure.c

index 97ec67ff2a8844978008ad7b202d99bc59be09b7..defa90acf25247f293a9cdcbf6f6e72a5a4d856c 100644 (file)
@@ -1,3 +1,10 @@
+2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
+
+       * libc/reent/impure.c (reent_data): Define as alias to impure_data
+       when building for Cygwin.
+       * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
+       _global_impure_ptr.
+
 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
 
        * configure.host: Reverting 2004-09-14 change as fix has occurred on
index 54f5d8efe14b374632490b44047f1c4fe7bc3d37..53cc142815149698fc980c6f17cdaa1f6d4554f6 100644 (file)
@@ -816,7 +816,7 @@ void _reclaim_reent _PARAMS ((struct _reent *));
 
 #endif /* !_REENT_ONLY */
 
-#define _GLOBAL_REENT _impure_ptr
+#define _GLOBAL_REENT _global_impure_ptr
 
 #ifdef __cplusplus
 }
index 27c0e0b5a266141b58b4600465ce169d34aedce2..12ee7177b3bb3089eeeddb25c93a973227f0b3c5 100644 (file)
@@ -10,5 +10,8 @@
 #endif
 
 static struct _reent __ATTRIBUTE_IMPURE_DATA__ impure_data = _REENT_INIT (impure_data);
+#ifdef __CYGWIN__
+extern struct _reent reent_data __attribute__ ((alias("impure_data")));
+#endif
 struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &impure_data;
 struct _reent *_CONST __ATTRIBUTE_IMPURE_PTR__ _global_impure_ptr = &impure_data;
This page took 0.117815 seconds and 5 git commands to generate.