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

Updated macro and variable decls to fit to POSIX and C89 #43

Closed
wants to merge 1 commit into from

Conversation

hoopoepg
Copy link
Collaborator

@hoopoepg hoopoepg commented Nov 15, 2018

  • macro LINUX is replaced by UNIX
  • removed variable declarations from for loop

fixes #39

Signed-off-by: Sergey Oblomov sergeyo@mellanox.com

- macro __LINUX__ is replaced by __UNIX__
- removed variable declarations from for

Signed-off-by: Sergey Oblomov <sergeyo@mellanox.com>
@hoopoepg
Copy link
Collaborator Author

@jdinan could you check this PR on MAC?

thank you

@jdinan
Copy link
Contributor

jdinan commented Nov 15, 2018

I don't see any reason why this wouldn't work on Mac, since it only renames the symbol. But, the approach being used is still not good. For example, printk is a Linux kernel function, not generally available in Unix (or even Linux unless you are building against the kernel). I pushed a more fine-grain update to this code to #41. Could you please take a look over there?

@hoopoepg hoopoepg closed this Nov 23, 2018
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.

Linux checks
2 participants