mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
Add Windows deploy script and fix Windows build
This commit is contained in:
@@ -76,8 +76,8 @@ plist_t get_device_info(const char *udid, int use_network, int simple,
|
||||
}
|
||||
|
||||
plist_t disk_info = nullptr;
|
||||
u_int64_t total_space = 0;
|
||||
u_int64_t free_space = 0;
|
||||
uint64_t total_space = 0;
|
||||
uint64_t free_space = 0;
|
||||
/* {
|
||||
"AmountDataAvailable": 6663077888,
|
||||
"AmountDataReserved": 209715200,
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
#include <libimobiledevice/notification_proxy.h>
|
||||
#include <libtatsu/tss.h>
|
||||
#include <plist/plist.h>
|
||||
#ifndef _WIN32
|
||||
#include <printf.h>
|
||||
#endif
|
||||
|
||||
QPair<bool, plist_t> _get_mounted_image(const char *udid)
|
||||
{
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE 1
|
||||
#include "../../iDescriptor.h"
|
||||
#include <stdlib.h>
|
||||
#define _GNU_SOURCE 1
|
||||
#define __USE_GNU 1
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
@@ -45,7 +45,9 @@
|
||||
#include <libimobiledevice/notification_proxy.h>
|
||||
#include <libtatsu/tss.h>
|
||||
#include <plist/plist.h>
|
||||
#ifndef _WIN32
|
||||
#include <printf.h>
|
||||
#endif
|
||||
|
||||
static int list_mode = 0;
|
||||
static int use_network = 0;
|
||||
|
||||
@@ -35,6 +35,9 @@
|
||||
#include <libkern/OSByteOrder.h>
|
||||
#include <machine/endian.h>
|
||||
#define htobe32(x) OSSwapHostToBigInt32(x)
|
||||
#elif defined(_WIN32)
|
||||
#include <winsock2.h>
|
||||
#define htobe32(x) htonl(x)
|
||||
#else
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user