libimobiledevice / libimobiledevice-glue

A library with common code used by libraries and tools around the libimobiledevice project
GNU Lesser General Public License v2.1
86 stars 69 forks source link

About conditional compilation #3

Closed AiXanadu closed 2 years ago

AiXanadu commented 2 years ago

I see that you can compile header files including winsock2.h with useful conditions.

Why not include unistd.h in the same way?

In this way, we can improve it step by step until it can be compiled on MSVC instead of using the MinGW version that MSVC can't debug

I built some cmake based libraries in https://github.com/libimobiledevice-cmake.

It has been successfully compiled in MSVC.