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
/
ifconfig.c
diff --git
a/src/ifconfig.c
b/src/ifconfig.c
index
0bbbf82
..
f4ce313
100644
(file)
--- a/
src/ifconfig.c
+++ b/
src/ifconfig.c
@@
-25,7
+25,7
@@
static long start;
static long start;
-#ifndef HAVE_
MINGW
+#ifndef HAVE_
WINDOWS
void ifconfig_header(FILE *out) {
fprintf(out, "#!/bin/sh\n");
start = ftell(out);
void ifconfig_header(FILE *out) {
fprintf(out, "#!/bin/sh\n");
start = ftell(out);
@@
-128,7
+128,7
@@
void ifconfig_address(FILE *out, const char *value) {
return;
}
return;
}
-#elif defined(HAVE_
MINGW
)
+#elif defined(HAVE_
WINDOWS
)
switch(address.type) {
case SUBNET_MAC:
switch(address.type) {
case SUBNET_MAC:
@@
-136,11
+136,11
@@
void ifconfig_address(FILE *out, const char *value) {
break;
case SUBNET_IPV4:
break;
case SUBNET_IPV4:
- fprintf(out, "netsh in
et
face ipv4 set address \"%%INTERFACE%%\" static %s\n", address_str);
+ fprintf(out, "netsh in
ter
face ipv4 set address \"%%INTERFACE%%\" static %s\n", address_str);
break;
case SUBNET_IPV6:
break;
case SUBNET_IPV6:
- fprintf(out, "netsh in
et
face ipv6 set address \"%%INTERFACE%%\" %s\n", address_str);
+ fprintf(out, "netsh in
ter
face ipv6 set address \"%%INTERFACE%%\" %s\n", address_str);
break;
default:
break;
default:
@@
-226,7
+226,7
@@
void ifconfig_route(FILE *out, const char *value) {
}
}
}
}
-#elif defined(HAVE_
MINGW
)
+#elif defined(HAVE_
WINDOWS
)
if(*gateway_str) {
switch(subnet.type) {
if(*gateway_str) {
switch(subnet.type) {