Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<limits.h> "fixed" by gcc #1

Open
zeldin opened this issue Feb 20, 2011 · 2 comments
Open

<limits.h> "fixed" by gcc #1

zeldin opened this issue Feb 20, 2011 · 2 comments

Comments

@zeldin
Copy link
Member

zeldin commented Feb 20, 2011

The header file $PS3DEV/host/ppu/ppu/include/limits.h provided by newlib defines PATH_MAX. However, gcc places the file $PS3DEV/host/ppu/lib/gcc/ppu/4.5.2/include-fixed/limits.h before it in the include path. This files does not define PATH_MAX. As a result, including <limits.h> does not provide PATH_MAX anymore.

@zeldin
Copy link
Member Author

zeldin commented Feb 20, 2011

Hm, actually I think the problem is that $PS3DEV/host/ppu/ppu/include isn't part of the default include path (but $PS3DEV/host/ppu/include is), which means fixincludes doesn't realize that <limits.h> already exists. Why do we have both host/ppu and host/ppu/ppu (and why is it called "host" when it obviously holds includes and libs for the target)?

@zeldin
Copy link
Member Author

zeldin commented Feb 20, 2011

No wait, it's the other way around (I got confused by all the "..":s), ppu/ppu/include is in there by default (but after include-fixed), but not ppu/include. So I guess my theory about why fixincludes messed up is wrong. :-/ (Also, only limits.h is "fixed", if it didn't find the newlib headers I guess there would have been more of them.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant