]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove __ from HAVE_EXTERN_ENVIRON_DECLARED__
authorNick Mathewson <nickm@torproject.org>
Mon, 30 Apr 2012 16:52:16 +0000 (12:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 30 Apr 2012 16:52:16 +0000 (12:52 -0400)
I think that the trailing __ got added in false analogy to
HAVE_MACRO__func__, HAVE_MACRO__FUNC__, and HAVE_MACRO__FUNCTION__.
But those macros actually indicate the presence of __func__,
__FUNC__, and __FUNCTION__ respectively.  The __ at the end of
HAVE_EXTERN_ENVIRON_DECLARED would only be appropriate if the
environ were declared__, whatever that means.

(As a side-note, HAVE_MACRO__func__ and so on should probably be
renamed HAVE_MACRO___func__ and so on.  But that can wait.)

This is an identifier renaming only.

configure.in
src/common/compat.c

index d4ea6c6d15ae3789f29095c82c5986830e8055c3..ede20879720efaf9b94315007829fd14124951e6 100644 (file)
@@ -1138,7 +1138,7 @@ if test "$tor_cv_have_FUNCTION_macro" = 'yes'; then
 fi
 
 if test "$tor_cv_have_environ_declared" = 'yes'; then
-  AC_DEFINE(HAVE_EXTERN_ENVIRON_DECLARED__, 1,
+  AC_DEFINE(HAVE_EXTERN_ENVIRON_DECLARED, 1,
            [Defined if we have extern char **environ already declared])
 fi
 
index 0e8d144f56f9464c8ea719b63cc0e98c75b453cf..fbb37ce031258d1b45632b9b54b6f698f271283f 100644 (file)
@@ -1712,7 +1712,7 @@ make_path_absolute(char *fname)
 }
 
 #ifndef HAVE__NSGETENVIRON
-#ifndef HAVE_EXTERN_ENVIRON_DECLARED__
+#ifndef HAVE_EXTERN_ENVIRON_DECLARED
 /* Some platforms declare environ under some circumstances, others don't. */
 extern char **environ;
 #endif