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 #42

Closed
wants to merge 1 commit into from

Conversation

hoopoepg
Copy link
Collaborator

  • macro LINUX is replaced by linux
  • removed variable declarations from for

fixes #39

Signed-off-by: Sergey Oblomov [email protected]

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

Signed-off-by: Sergey Oblomov <[email protected]>
@jdinan
Copy link
Contributor

jdinan commented Nov 14, 2018

You may want to check if the -D__LINUX__ in Makefile.am can be removed. Also, it looks like this change will break the Mac build, but I suspect that is easily fixed by updating:

#if defined(__linux__)

to:

#if defined(__linux__) || defined(__APPLE__)

I'm happy to make this change, if you don't have access to a machine where you can try it out.

@hoopoepg
Copy link
Collaborator Author

@jdinan it would be great!!!

thank you

@hoopoepg
Copy link
Collaborator Author

hmmm, I looked at Makefile.am - there is permanent definition of LINUX without any condition... it seems we may remove any checks for linux at all

@hoopoepg hoopoepg closed this Nov 15, 2018
@hoopoepg
Copy link
Collaborator Author

PR is not valid - here LINUX defines the scope of UNIX systems (technically not Windows)

@jdinan
Copy link
Contributor

jdinan commented Nov 15, 2018

For what it's worth, I'm not aware of any OpenSHMEM implementation that supports Windows.

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