pqrs-org / Karabiner-DriverKit-VirtualHIDDevice

The Unlicense
223 stars 27 forks source link

[Compilation error] no type named 'path' in namespace 'std::filesystem' #23

Open MuhammedZakir opened 2 years ago

MuhammedZakir commented 2 years ago

File: https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/blob/main/include/pqrs/karabiner/driverkit/virtual_hid_device_service/constants.hpp

#include <filesystem> solved this. I didn't open a PR because I am not sure if that's the correct thing to do.

This is not an urget issue like the one above, but, I am getting deprected warnings about kIOMasterPortDefault. To solve this, I guess one could do:

#ifdef __MAC_12_0
  #define __kIOMainPortDefault kIOMainPortDefault
#else
  #define __kIOMainPortDefault kIOMasterPortDefault
#endif

If you are fine with above changes (feel free to correct me), I can open a PR.