Fossil SCM

Fix compilation issue on Unix due to 'mkindex' wrongly attempting to include 'cmd_win32_service' due to its #if processing.

mistachkin 2016-11-02 06:41 trunk
Commit 69f64a8d64722e0e8ac7c9e673c03a49228ec1eb
1 file changed +4 -2
+4 -2
--- src/winhttp.c
+++ src/winhttp.c
@@ -666,11 +666,12 @@
666666
}
667667
}
668668
return 0;
669669
}
670670
671
-/* dupe ifdef needed for mkindex
671
+#ifdef _WIN32 /* dupe needed for mkindex */
672
+/*
672673
** COMMAND: winsrv*
673674
**
674675
** Usage: %fossil winsrv METHOD ?SERVICE-NAME? ?OPTIONS?
675676
**
676677
** Where METHOD is one of: create delete show start stop.
@@ -1115,6 +1116,7 @@
11151116
fossil_fatal("METHOD should be one of:"
11161117
" create delete show start stop");
11171118
}
11181119
return;
11191120
}
1120
-#endif /* _WIN32 -- This code is for win32 only */
1121
+#endif /* _WIN32 -- dupe needed for mkindex */
1122
+#endif /* _WIN32 -- This code is for win32 only */
11211123
--- src/winhttp.c
+++ src/winhttp.c
@@ -666,11 +666,12 @@
666 }
667 }
668 return 0;
669 }
670
671 /* dupe ifdef needed for mkindex
 
672 ** COMMAND: winsrv*
673 **
674 ** Usage: %fossil winsrv METHOD ?SERVICE-NAME? ?OPTIONS?
675 **
676 ** Where METHOD is one of: create delete show start stop.
@@ -1115,6 +1116,7 @@
1115 fossil_fatal("METHOD should be one of:"
1116 " create delete show start stop");
1117 }
1118 return;
1119 }
1120 #endif /* _WIN32 -- This code is for win32 only */
 
1121
--- src/winhttp.c
+++ src/winhttp.c
@@ -666,11 +666,12 @@
666 }
667 }
668 return 0;
669 }
670
671 #ifdef _WIN32 /* dupe needed for mkindex */
672 /*
673 ** COMMAND: winsrv*
674 **
675 ** Usage: %fossil winsrv METHOD ?SERVICE-NAME? ?OPTIONS?
676 **
677 ** Where METHOD is one of: create delete show start stop.
@@ -1115,6 +1116,7 @@
1116 fossil_fatal("METHOD should be one of:"
1117 " create delete show start stop");
1118 }
1119 return;
1120 }
1121 #endif /* _WIN32 -- dupe needed for mkindex */
1122 #endif /* _WIN32 -- This code is for win32 only */
1123

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button