Include gettext.h only in those files that need it.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jun 2008 00:33:46 +0000 (02:33 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Jun 2008 00:33:46 +0000 (02:33 +0200)
ChangeLog
lib/acl-internal.h
lib/copy-acl.c
lib/set-mode-acl.c

index 2e60a11..8d5771d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-06-10  Bruno Haible  <bruno@clisp.org>
 
+       * lib/acl-internal.h: Don't include gettext.h here.
+       * lib/set-mode-acl.c: Include gettext.h here.
+       * lib/copy-acl.c: Likewise.
+
+2008-06-10  Bruno Haible  <bruno@clisp.org>
+
        * lib/wait-process.h (wait_subprocess): Add termsigp argument.
        * lib/wait-process.c (wait_subprocess): Likewise.
        * lib/execute.h (execute): Add termsigp argument.
index fababa6..33a47e5 100644 (file)
@@ -46,9 +46,6 @@
 # define ENOTSUP (-1)
 #endif
 
-#include "gettext.h"
-#define _(msgid) gettext (msgid)
-
 #ifndef HAVE_FCHMOD
 # define HAVE_FCHMOD false
 # define fchmod(fd, mode) (-1)
index 0f5931b..bc2740a 100644 (file)
@@ -23,6 +23,9 @@
 
 #include "acl-internal.h"
 
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
 
 /* Copy access control lists from one file to another. If SOURCE_DESC is
    a valid file descriptor, use file descriptor operations, else use
index 6ecde59..dbcbea2 100644 (file)
 
 #include "acl-internal.h"
 
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
+
 /* If DESC is a valid file descriptor use fchmod to change the
    file's mode to MODE on systems that have fchown. On systems
    that don't have fchown and if DESC is invalid, use chown on