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

macOS build: fatal error: 'malloc.h' file not found #17

Open
glebm opened this issue Jan 30, 2021 · 3 comments
Open

macOS build: fatal error: 'malloc.h' file not found #17

glebm opened this issue Jan 30, 2021 · 3 comments

Comments

@glebm
Copy link

glebm commented Jan 30, 2021

jpge.cpp:35:10: fatal error: 'malloc.h' file not found
#include <malloc.h>

https://github.com/hrydgard/ppsspp/pull/14016/checks?check_run_id=1797191251

@mlprojn
Copy link

mlprojn commented Dec 2, 2021

Since malloc is included from stdlib.h already on macOS you can replace that line with

#ifndef __APPLE__
#include <malloc.h>
#endif

@glebm
Copy link
Author

glebm commented Dec 21, 2021

@mlprojn malloc.h is a long-deprecated header and should not be included at all, on any platform. I sent a pull request on the same day I filed the issue but it hasn't been looked at by @richgel999 yet #18

@colinator
Copy link

Hey, it'd be nice to get this sorted...

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

3 participants