aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2011-02-14 20:53:29 -0800
committerPaul Eggert2011-02-14 20:53:29 -0800
commitbb55f713d2e4ea089a861a257d7d000432642ce9 (patch)
tree92cf79666025c70a6541e87cb47ab8299c5f92af /lib
parent8017fd6b81ed07c1ff3adf7494c867f9a2b034a9 (diff)
downloademacs-bb55f713d2e4ea089a861a257d7d000432642ce9.tar.gz
emacs-bb55f713d2e4ea089a861a257d7d000432642ce9.zip
Merge from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/gettext.h6
-rw-r--r--lib/ignore-value.h8
2 files changed, 10 insertions, 4 deletions
diff --git a/lib/gettext.h b/lib/gettext.h
index eb74aecb9a8..458e3322177 100644
--- a/lib/gettext.h
+++ b/lib/gettext.h
@@ -93,6 +93,12 @@
93 93
94#endif 94#endif
95 95
96/* Prefer gnulib's setlocale override over libintl's setlocale override. */
97#ifdef GNULIB_defined_setlocale
98# undef setlocale
99# define setlocale rpl_setlocale
100#endif
101
96/* A pseudo function call that serves as a marker for the automated 102/* A pseudo function call that serves as a marker for the automated
97 extraction of messages, but does not call gettext(). The run-time 103 extraction of messages, but does not call gettext(). The run-time
98 translation is done at a different place in the code. 104 translation is done at a different place in the code.
diff --git a/lib/ignore-value.h b/lib/ignore-value.h
index 5e683bbb533..f021a1ac8ea 100644
--- a/lib/ignore-value.h
+++ b/lib/ignore-value.h
@@ -35,13 +35,13 @@
35#ifndef _GL_IGNORE_VALUE_H 35#ifndef _GL_IGNORE_VALUE_H
36# define _GL_IGNORE_VALUE_H 36# define _GL_IGNORE_VALUE_H
37 37
38# ifndef ATTRIBUTE_DEPRECATED 38# ifndef _GL_ATTRIBUTE_DEPRECATED
39/* The __attribute__((__deprecated__)) feature 39/* The __attribute__((__deprecated__)) feature
40 is available in gcc versions 3.1 and newer. */ 40 is available in gcc versions 3.1 and newer. */
41# if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 1) 41# if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 1)
42# define ATTRIBUTE_DEPRECATED /* empty */ 42# define _GL_ATTRIBUTE_DEPRECATED /* empty */
43# else 43# else
44# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 44# define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
45# endif 45# endif
46# endif 46# endif
47 47
@@ -56,7 +56,7 @@
56 56
57/* ignore_value works for scalars, pointers and aggregates; 57/* ignore_value works for scalars, pointers and aggregates;
58 deprecate ignore_ptr. */ 58 deprecate ignore_ptr. */
59static inline void ATTRIBUTE_DEPRECATED 59static inline void _GL_ATTRIBUTE_DEPRECATED
60ignore_ptr (void *p) { (void) p; } /* deprecated: use ignore_value */ 60ignore_ptr (void *p) { (void) p; } /* deprecated: use ignore_value */
61 61
62#endif 62#endif