Tiny fix (pdb windows) (#7905)
This commit is contained in:
parent
64794df907
commit
68cb26566e
1 changed files with 10 additions and 2 deletions
|
|
@ -5,12 +5,20 @@
|
|||
#include <r_core.h>
|
||||
|
||||
static int checkPrograms () {
|
||||
// TODO > /dev/null is not portable
|
||||
#if __WINDOWS__ && !__CYGWIN__
|
||||
char nul[] = "nul";
|
||||
if (r_sys_cmd ("expand >nul") != 0) {
|
||||
eprintf ("Missing expand\n");
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
char nul[] = "/dev/null";
|
||||
if (r_sys_cmd ("cabextract -v > /dev/null") != 0) {
|
||||
eprintf ("Missing cabextract\n");
|
||||
return 0;
|
||||
}
|
||||
if (r_sys_cmd ("curl --version > /dev/null") != 0) {
|
||||
#endif
|
||||
if (r_sys_cmdf ("curl --version >%s", nul) != 0) {
|
||||
eprintf ("Missing curl\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue