From c52de00a32533922a2ac4978bfd12217039c8755 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Sat, 2 Jan 2021 18:12:08 +0000 Subject: [PATCH] Checkers: newlib git-svn-id: svn://kolibrios.org@8501 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/checkers/trunk/Tupfile.lua | 4 +++- programs/games/checkers/trunk/sysproc.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 ('/')