aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2012-07-10 23:52:48 -0700
committerGlenn Morris2012-07-10 23:52:48 -0700
commitc8add24e86d499000f0998558d635fffa1f3857c (patch)
tree4e66354f1cfce36f68f679c3b72dffbb73436852 /src
parentb41253a389afdffde3d2551e4c165f0ebbafdf89 (diff)
downloademacs-c8add24e86d499000f0998558d635fffa1f3857c.tar.gz
emacs-c8add24e86d499000f0998558d635fffa1f3857c.zip
Move GNU_LIBRARY_PENDING_OUTPUT_COUNT from src/s to configure
* configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Move here from src/s. * src/s/gnu.h, src/s/gnu-linux.h: Move GNU_LIBRARY_PENDING_OUTPUT_COUNT to configure.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/s/gnu-linux.h18
-rw-r--r--src/s/gnu.h10
3 files changed, 6 insertions, 27 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 64a7989a70f..045a3d374b8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-07-11 Glenn Morris <rgm@gnu.org>
2
3 * s/gnu.h, s/gnu-linux.h:
4 Move GNU_LIBRARY_PENDING_OUTPUT_COUNT to configure.
5
12012-07-11 John Wiegley <johnw@newartisans.com> 62012-07-11 John Wiegley <johnw@newartisans.com>
2 7
3 * alloc.c (mark_memory): Guard the "no_address_safety_analysis" 8 * alloc.c (mark_memory): Guard the "no_address_safety_analysis"
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 6f45ee00b78..9f8a994bb7e 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -92,25 +92,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
92 your system and must be used only through an encapsulation 92 your system and must be used only through an encapsulation
93 (Which you should place, by convention, in sysdep.c). */ 93 (Which you should place, by convention, in sysdep.c). */
94 94
95/* This is needed for dispnew.c:update_frame. */
96#ifdef emacs 95#ifdef emacs
97#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
98#if defined (_IO_STDIO_H) || defined (_STDIO_USES_IOSTREAM)
99/* New C libio names. */
100#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
101 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
102#elif defined (__UCLIBC__)
103/* Using the uClibc library. */
104#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
105 ((FILE)->__bufpos - (FILE)->__bufstart)
106#else /* !_IO_STDIO_H && ! __UCLIBC__ */
107/* Old C++ iostream names. */
108#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
109 ((FILE)->_pptr - (FILE)->_pbase)
110#endif /* !_IO_STDIO_H && ! __UCLIBC__ */
111
112#define INTERRUPT_INPUT 96#define INTERRUPT_INPUT
113#endif /* emacs */ 97#endif
114 98
115#define POSIX /* affects getpagesize.h and systty.h */ 99#define POSIX /* affects getpagesize.h and systty.h */
116 100
diff --git a/src/s/gnu.h b/src/s/gnu.h
index bac233266c8..9ec75081ca1 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -20,13 +20,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20 20
21/* Get most of the stuff from bsd-common */ 21/* Get most of the stuff from bsd-common */
22#include "bsd-common.h" 22#include "bsd-common.h"
23
24/* It would be harmless to drop the ifdef emacs test. */
25#ifdef emacs
26#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
27#if defined (_IO_STDIO_H) || defined (_STDIO_USES_IOSTREAM)
28/* new C libio names */
29#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
30 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
31#endif /* !_IO_STDIO_H */
32#endif /* emacs */