diff --git a/programs/games/checkers/trunk/Tupfile.lua b/programs/games/checkers/trunk/Tupfile.lua index e8e57aae7f..b78a5376e8 100644 --- a/programs/games/checkers/trunk/Tupfile.lua +++ b/programs/games/checkers/trunk/Tupfile.lua @@ -1,12 +1,14 @@ if tup.getconfig("NO_GCC") ~= "" then return end HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") tup.include(HELPERDIR .. "/use_gcc.lua") -tup.include(HELPERDIR .. "/use_menuetlibc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") if tup.getconfig("LANG") == "ru" then C_LANG = "LANG_RUS" else C_LANG = "LANG_ENG" -- this includes default case without config end +LIBS = "-lsupc++ -lstdc++ " .. LIBS +LDFLAGS = LDFLAGS .. " --subsystem native" CFLAGS = CFLAGS .. " -D_KOLIBRI -DAUTOBUILD -D" .. C_LANG .. " -DNO_FILES -fwhole-program" compile_gcc{"checkers.cpp"} diff --git a/programs/games/checkers/trunk/sysproc.h b/programs/games/checkers/trunk/sysproc.h index d3e76e0c1d..48d7c75849 100644 --- a/programs/games/checkers/trunk/sysproc.h +++ b/programs/games/checkers/trunk/sysproc.h @@ -9,7 +9,7 @@ inline long GetProcessId() {return 0;} inline long DuplicateProcess() {return -1;} inline int random(int m) {return ((unsigned long)rand()) % m;} - inline void randomize() {srand(__menuet__getsystemclock());} + inline void randomize() {srand(time(0));} #elif defined __GNUC__ # include # define DIR_SEPARATOR ('/')