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: Thu, 26 Oct 2006 13:44:32 +0200
User-agent: KMail/1.9.1

In the situation when all gnulib symbols are aliased, one needs this patch
to avoid a compiler warning.


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

        * lib/progname.h (set_program_name): Undefine before defining.

*** lib/progname.h.bak  2005-05-14 08:03:58.000000000 +0200
--- lib/progname.h      2006-10-26 04:07:38.000000000 +0200
***************
*** 1,5 ****
  /* Program name management.
!    Copyright (C) 2001-2004 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2001.
  
     This program is free software; you can redistribute it and/or modify
--- 1,5 ----
  /* Program name management.
!    Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2001.
  
     This program is free software; you can redistribute it and/or modify
***************
*** 42,47 ****
--- 42,48 ----
  extern void set_program_name_and_installdir (const char *argv0,
                                             const char *orig_installprefix,
                                             const char *orig_installdir);
+ #undef set_program_name
  #define set_program_name(ARG0) \
    set_program_name_and_installdir (ARG0, INSTALLPREFIX, INSTALLDIR)
  




reply via email to

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