diff options
author | michi_cc <michi_cc@openttd.org> | 2011-12-10 16:54:41 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-12-10 16:54:41 +0000 |
commit | a0f3649c1abe7b831f083366e2fd91206bf23091 (patch) | |
tree | 5a352c430013c682e93d1a1b85960182cd18fbac /src/os/os2 | |
parent | 0ca25fb3af8fbf00607df120149b27aa7a763edb (diff) | |
download | openttd-a0f3649c1abe7b831f083366e2fd91206bf23091.tar.xz |
(svn r23481) -Add: Function to get the CPU core count.
Diffstat (limited to 'src/os/os2')
-rw-r--r-- | src/os/os2/os2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/os2/os2.cpp b/src/os/os2/os2.cpp index bef44d4f5..21fd0c78b 100644 --- a/src/os/os2/os2.cpp +++ b/src/os/os2/os2.cpp @@ -210,3 +210,8 @@ void CSleep(int milliseconds) const char *FS2OTTD(const char *name) {return name;} const char *OTTD2FS(const char *name) {return name;} + +uint GetCPUCoreCount() +{ + return 1; +} |