summaryrefslogtreecommitdiffstats
path: root/gl/getprogname.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/getprogname.h')
-rw-r--r--gl/getprogname.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/gl/getprogname.h b/gl/getprogname.h
index 4b9126f..bee1c1a 100644
--- a/gl/getprogname.h
+++ b/gl/getprogname.h
@@ -1,5 +1,5 @@
1/* Program name management. 1/* Program name management.
2 Copyright (C) 2016-2023 Free Software Foundation, Inc. 2 Copyright (C) 2016-2024 Free Software Foundation, Inc.
3 3
4 This program is free software: you can redistribute it and/or modify 4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
@@ -19,22 +19,8 @@
19 19
20#include <stdlib.h> 20#include <stdlib.h>
21 21
22#ifdef __cplusplus 22#if __GNUC__ || (__clang_major__ >= 4)
23extern "C" { 23# warning "The include file getprogname.h is deprecated. Use <stdlib.h> instead."
24#endif
25
26/* Return the base name of the executing program.
27 On native Windows this will usually end in ".exe" or ".EXE". */
28#ifndef HAVE_GETPROGNAME
29extern char const *getprogname (void)
30# ifdef HAVE_DECL_PROGRAM_INVOCATION_NAME
31 _GL_ATTRIBUTE_PURE
32# endif
33 ;
34#endif
35
36#ifdef __cplusplus
37}
38#endif 24#endif
39 25
40#endif 26#endif