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

Types pid_t and int are not always the same. #1411

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

Conversation

oicontrib
Copy link

We get build error when pid_t is not equal to int.
e.g on solaris when building 32bit version of cpputest pid_t is typedef to long.

@coveralls
Copy link

coveralls commented Jul 26, 2020

Coverage Status

Coverage remained the same at 99.833% when pulling 1079417 on oicontrib:master into ec0b029 on cpputest:master.

@@ -32,6 +32,12 @@
#include "CppUTestGeneratedConfig.h"
#endif

#ifdef _cpputest_pid_t
#define PID_T _cpputest_pid_t
Copy link
Contributor

@offa offa Jul 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't typedef a better choice here? #define can be harmful at many places.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed #define to typedef.

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

Successfully merging this pull request may close these issues.

None yet

3 participants