Define u types for Windows in ++ library

This commit is contained in:
Jackson Coxson
2025-08-12 13:36:33 -06:00
parent bc5b15bd39
commit d59d16696c
2 changed files with 18 additions and 2 deletions

View File

@@ -8,6 +8,14 @@
#include <optional>
#include <string>
#if defined(_WIN32) && !defined(__MINGW32__)
// MSVC doesn't have BSD u_int* types
using u_int8_t = std::uint8_t;
using u_int16_t = std::uint16_t;
using u_int32_t = std::uint32_t;
using u_int64_t = std::uint64_t;
#endif
namespace IdeviceFFI {
class Idevice {