tuklib_progname.h 817 B

123456789101112131415161718192021222324252627282930313233
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. /// \file tuklib_progname.h
  4. /// \brief Program name to be displayed in messages
  5. //
  6. // Author: Lasse Collin
  7. //
  8. // This file has been put into the public domain.
  9. // You can do whatever you want with this file.
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12. #ifndef TUKLIB_PROGNAME_H
  13. #define TUKLIB_PROGNAME_H
  14. #include "tuklib_common.h"
  15. #include <errno.h>
  16. TUKLIB_DECLS_BEGIN
  17. #if HAVE_DECL_PROGRAM_INVOCATION_NAME
  18. # define progname program_invocation_name
  19. #else
  20. # define progname TUKLIB_SYMBOL(tuklib_progname)
  21. extern char *progname;
  22. #endif
  23. #define tuklib_progname_init TUKLIB_SYMBOL(tuklib_progname_init)
  24. extern void tuklib_progname_init(char **argv);
  25. TUKLIB_DECLS_END
  26. #endif