Make it possible to #define set_program_name to an alias.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Oct 2006 12:37:31 +0000 (12:37 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Oct 2006 12:37:31 +0000 (12:37 +0000)
ChangeLog
lib/progname.c

index f40baa8..a266f17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-10-10  Bruno Haible  <bruno@clisp.org>
+
+       Make it possible to #define set_program_name to an alias.
+       * lib/progname.c: Don't undefine set_program_name; instead, undefine
+       ENABLE_RELOCATABLE early.
+
 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
 
        Port to Tandem NSK OSS, which has 64-bit signed int but at most
index d3dc8cf..df52f60 100644 (file)
 #include <config.h>
 
 /* Specification.  */
+#undef ENABLE_RELOCATABLE /* avoid defining set_program_name as a macro */
 #include "progname.h"
 
 #include <string.h>
 
-#undef set_program_name
-
 
 /* String containing name the program is called with.
    To be initialized by main().  */