1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

Ports: Add openttd

This commit is contained in:
Gunnar Beutner 2021-04-17 15:40:17 +02:00 committed by Linus Groh
parent 4b33365078
commit ae32abffe9
8 changed files with 244 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -Naur openttd-1.11.0/src/cpu.cpp openttd-1.11.0.serenity/src/cpu.cpp
--- openttd-1.11.0/src/cpu.cpp 2021-04-22 01:14:21.038920133 +0200
+++ openttd-1.11.0.serenity/src/cpu.cpp 2021-04-22 01:13:56.638440518 +0200
@@ -40,7 +40,7 @@
#endif
/* rdtsc for all other *nix-en (hopefully). Use GCC syntax */
-#if (defined(__i386__) || defined(__x86_64__)) && !defined(RDTSC_AVAILABLE)
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(__serenity__) && !defined(RDTSC_AVAILABLE)
uint64 ottd_rdtsc()
{
uint32 high, low;