# PSP c souce files misses #ifdef PSP\_FOOBAR

**URL:** <https://discourse.libsdl.org/t/psp-c-souce-files-misses-ifdef-psp-foobar/20373>\
**Category:** SDL Development\
**Created:** [February 9, 2014, 7:29pm UTC](https://discourse.libsdl.org/t/psp-c-souce-files-misses-ifdef-psp-foobar/20373 "2014-02-09T19:29:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Gerhardy](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/martin_gerhardy/32/591_2.png) [@Martin\_Gerhardy](https://discourse.libsdl.org/u/Martin_Gerhardy)\
**Post date:** [February 9, 2014, 7:29pm UTC](https://discourse.libsdl.org/t/psp-c-souce-files-misses-ifdef-psp-foobar/20373/1 "2014-02-09T19:29:48Z")

</div>

Hi,

in general one can add all c files to projects and SDL only picks the  
parts that are reasonable for the arch depending on the config.h - in  
case of the psp port, the guards are missing that make this possible.

at least the following subsystems are lacking the #ifdefs  
audio  
joystick  
main  
threads  
timer  
video

also the psp video header uses something from the pandora. I don’t have  
a psp to test changes on - that’s the reason why there is no patch  
attached here.

greetings  
Martin
