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

Add appropriate inttypes.h headers to test files #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

glmdev
Copy link

@glmdev glmdev commented Sep 22, 2021

When compiling mkclean from source on CentOS 7 (GCC 4.8.5), the use of PRIdPTR was causing a compilation error because the inttypes.h header and appropriate macro were not present in the offending test files.

Monkey-patching the lines into the test files fixed the compilation error, so I thought I'd create a pull here.

This was causing compilation errors on CentOS 7 with GCC 4.8.5 because of the use of PRIdPTR.
This was causing compilation errors on CentOS 7 with GCC 4.8.5 due to the use of PRIdPTR.
@robUx4 robUx4 added the bug label Sep 26, 2021
@robUx4
Copy link
Contributor

robUx4 commented Sep 26, 2021

Hi,

inttypes.h is already included from portab.h. You should not need it

You should add the defines in either of them or both.

Maybe the PRIdPTR check should also be added in the first version that supports C99. Although I've never had a problem with it so far on Linux targets.

@robUx4
Copy link
Contributor

robUx4 commented Sep 26, 2021

Can you try without the #include <inttypes.h> and see if it works ?

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

Successfully merging this pull request may close these issues.

2 participants