mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-22 07:17:05 +01:00
WINGs: Simplify use of HAVE_SECURE_GETENV
Define the macro GETENV(x) instead of sprinkling code with #ifdef HAVE_SECURE_GETENV everytime we want to use it.
This commit is contained in:
1 parent
75f133285f
commit
c060477d57
3 files changed
+8
-10
No files matched your search
@@ -29,6 +29,12 @@
|
||||
# define _(text) (text)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SECURE_GETENV
|
||||
#define GETENV(x) secure_getenv((x))
|
||||
#else
|
||||
#define GETENV(x) getenv((x))
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* WINGS_CONFIG_H_ */
|
||||
|
||||
Reference in new issue
Block a user