bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

progname tweak


From: Bruno Haible
Subject: progname tweak
Date: Wed, 11 Oct 2006 14:35:12 +0200
User-agent: KMail/1.9.1

Ralf reminded us that we should be able to build libraries which don't
cause name clashes.

This patch makes it possible to #define set_program_name to an alias.

2006-10-10  Bruno Haible  <address@hidden>

        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.

*** lib/progname.c      14 Sep 2006 14:18:36 -0000      1.6
--- lib/progname.c      11 Oct 2006 12:34:45 -0000
***************
*** 20,31 ****
  #include <config.h>
  
  /* Specification.  */
  #include "progname.h"
  
  #include <string.h>
  
- #undef set_program_name
- 
  
  /* String containing name the program is called with.
     To be initialized by main().  */
--- 20,30 ----
  #include <config.h>
  
  /* Specification.  */
+ #undef ENABLE_RELOCATABLE /* avoid defining set_program_name as a macro */
  #include "progname.h"
  
  #include <string.h>
  
  
  /* String containing name the program is called with.
     To be initialized by main().  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]