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:
John D Pell authored and Carlos R. Mafra committed 2021-08-10 09:42:43 +01:00
1 parent 75f133285f
commit c060477d57
3 files changed
+8 -10

No files matched your search

+1 -5
View File
@@ -58,11 +58,7 @@ const char *wusergnusteppath()
/* Value have been already computed, re-use it */
return path;
#ifdef HAVE_SECURE_GETENV
gspath = secure_getenv("WMAKER_USER_ROOT");
#else
gspath = getenv("WMAKER_USER_ROOT");
#endif
gspath = GETENV("WMAKER_USER_ROOT");
if (gspath) {
gspath = wexpandpath(gspath);
if (gspath) {