kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

os.c (474B)


      1 #include <kit/config.h>
      2 #include <kit/os.h>
      3 
      4 #if KIT_OBJ_ELF_ENABLED
      5 extern const KitOsHostedOps kit_os_linux_hosted_ops;
      6 #endif
      7 
      8 #if KIT_EMU_ENABLED
      9 extern const KitOsEmuOps kit_os_linux_emu_ops;
     10 #endif
     11 
     12 const KitOsImpl kit_os_linux_impl = {
     13     .kind = KIT_OS_LINUX,
     14     .name = "linux",
     15 #if KIT_OBJ_ELF_ENABLED
     16     .hosted = &kit_os_linux_hosted_ops,
     17 #else
     18     .hosted = NULL,
     19 #endif
     20 #if KIT_EMU_ENABLED
     21     .emu = &kit_os_linux_emu_ops,
     22 #else
     23     .emu = NULL,
     24 #endif
     25 };