Index: src/OFSystemInfo.m ================================================================== --- src/OFSystemInfo.m +++ src/OFSystemInfo.m @@ -44,10 +44,14 @@ #ifdef OF_NINTENDO_SWITCH # define id nx_id # import # undef nx_id #endif + +#ifdef OF_DJGPP +# include +#endif #import "OFSystemInfo.h" #import "OFApplication.h" #import "OFArray.h" #import "OFDictionary.h" @@ -135,12 +139,14 @@ operatingSystemName = @"Nintendo 3DS"; #elif defined(OF_NINTENDO_DS) operatingSystemName = @"Nintendo DS"; #elif defined(OF_PSP) operatingSystemName = @"PlayStation Portable"; -#elif defined(OF_MSDOS) - operatingSystemName = @"MS-DOS"; +#elif defined(OF_DJGPP) + operatingSystemName = [[OFString alloc] + initWithCString: _os_flavor + encoding: OFStringEncodingASCII]; #elif defined(HAVE_SYS_UTSNAME_H) && defined(HAVE_UNAME) struct utsname utsname; if (uname(&utsname) != 0) return; @@ -228,12 +234,15 @@ /* TODO */ #elif defined(OF_AMIGAOS) operatingSystemVersion = [[OFString alloc] initWithFormat: @"Kickstart %u.%u", SysBase->LibNode.lib_Version, SysBase->SoftVer]; +#elif defined(OF_DJGPP) + operatingSystemVersion = [[OFString alloc] + initWithFormat: @"%u.%u", _osmajor, _osminor]; #elif defined(OF_WII) || defined(NINTENDO_3DS) || defined(OF_NINTENDO_DS) || \ - defined(OF_PSP) || defined(OF_MSDOS) + defined(OF_PSP) /* Intentionally nothing */ #elif defined(HAVE_SYS_UTSNAME_H) && defined(HAVE_UNAME) struct utsname utsname; if (uname(&utsname) != 0)