projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace MinGW with Windows to avoid ambiguities
[tinc]
/
src
/
script.c
diff --git
a/src/script.c
b/src/script.c
index
b380931
..
0b16c86
100644
(file)
--- a/
src/script.c
+++ b/
src/script.c
@@
-37,7
+37,7
@@
static void unputenv(const char *p) {
ptrdiff_t len = e - p;
#ifndef HAVE_UNSETENV
ptrdiff_t len = e - p;
#ifndef HAVE_UNSETENV
-#ifdef HAVE_
MINGW
+#ifdef HAVE_
WINDOWS
// Windows requires putenv("FOO=") to unset %FOO%
len++;
#endif
// Windows requires putenv("FOO=") to unset %FOO%
len++;
#endif
@@
-148,7
+148,7
@@
bool execute_script(const char *name, environment_t *env) {
/* First check if there is a script */
/* First check if there is a script */
-#ifdef HAVE_
MINGW
+#ifdef HAVE_
WINDOWS
if(!*scriptextension) {
const char *pathext = getenv("PATHEXT");
if(!*scriptextension) {
const char *pathext = getenv("PATHEXT");