Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8500 → Rev 8501

/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"}
/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 <unistd.h>
# define DIR_SEPARATOR ('/')