Commit 5da3619
Disable wordexp on Windows where it is unavailable
The wordexp() function is a POSIX extension not available on Windows.
This patch conditionally compiles wordexp usage only on non-Windows platforms.
On Windows, the path is used as-is without shell expansion, since Windows
does not support tilde expansion in the same way as POSIX systems.
Changes:
- Wrap #include <wordexp.h> with #ifndef _WIN32
- Add platform-specific constructor implementations
- Windows version simply stores the path without expansion1 parent e818417 commit 5da3619
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
0 commit comments