mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-27 07:55:14 +00:00
Tiny fix (pdb windows) (#7905)
This commit is contained in:
parent
64794df907
commit
68cb26566e
@ -5,12 +5,20 @@
|
|||||||
#include <r_core.h>
|
#include <r_core.h>
|
||||||
|
|
||||||
static int checkPrograms () {
|
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) {
|
if (r_sys_cmd ("cabextract -v > /dev/null") != 0) {
|
||||||
eprintf ("Missing cabextract\n");
|
eprintf ("Missing cabextract\n");
|
||||||
return 0;
|
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");
|
eprintf ("Missing curl\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user