summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-02-11 13:57:35 +0000
committertruelight <truelight@openttd.org>2007-02-11 13:57:35 +0000
commit0d91ed68a9b5e63098eca9765686acf5928ed643 (patch)
tree221561506effc0c4c1a3f46200cc308b8a4ee5a5 /src/stdafx.h
parentb71d6e14013d237feeb69367a0e978c7622a813b (diff)
downloadopenttd-0d91ed68a9b5e63098eca9765686acf5928ed643.tar.xz
(svn r8674) [PSP] -Add: added network code for PSP, based on the work of Turulo
-Add: added general header-inclusing for PSP
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 29f32c3ce..22259f71d 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -37,6 +37,12 @@
# define strcasecmp stricmp
#endif
+#if defined(PSP)
+# include <psptypes.h>
+# include <pspdebug.h>
+# include <pspthreadman.h>
+#endif /* PSP */
+
#ifdef __BEOS__
# include <SupportDefs.h>
#endif
@@ -81,7 +87,8 @@
/* PSP can only have 10 file-descriptors open at any given time, but this
* switch only limits reads via the Fio system. So keep 2 fds free for things
* like saving a game. */
-#define LIMITED_FDS 8
+# define LIMITED_FDS 8
+# define printf pspDebugScreenPrintf
#endif /* PSP */
/* by default we use [] var arrays */