- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit311da16
committed
Add support for optional_argument to our own getopt_long() implementation.
07c8651 currently causes compilation errors on mscv (andprobably some other) compilers because our getopt_long()implementation doesn't have support for optional_argument.Thus implement optional_argument in our fallback implemenation. It'squite possibly also useful in other cases.Arguably this needs a configure check for optional_argument, but ithas existed pretty much since getopt_long() was introduced and thusdoesn't seem worth the configure runtime.Normally I'd would not push a patch this fast, but this allows msvc tobuild again and has low risk as only optional_argument behaviour haschanged.Author: Michael Paquier and Andres FreundDiscussion: CAB7nPqS5VeedSCxrK=QouokbawgGKLpyc1Q++RRFCa_sjcSVrg@mail.gmail.com1 parentb4c28d1 commit311da16
2 files changed
+13
-4
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
|
Lines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
103 |
| - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
107 |
| - | |
| 109 | + | |
| 110 | + | |
108 | 111 |
| |
109 | 112 |
| |
110 | 113 |
| |
| |||
113 | 116 |
| |
114 | 117 |
| |
115 | 118 |
| |
116 |
| - | |
| 119 | + | |
| 120 | + | |
117 | 121 |
| |
118 | 122 |
| |
119 | 123 |
| |
| 124 | + | |
120 | 125 |
| |
121 | 126 |
| |
122 |
| - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
123 | 131 |
| |
124 | 132 |
| |
125 | 133 |
| |
|
0 commit comments
Comments
(0)