Tiny fix (pdb windows) (#7905)

This commit is contained in:
xarkes 2017-07-11 16:32:48 +02:00 committed by radare
parent 64794df907
commit 68cb26566e

View File

@ -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;
}