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

Fix for issue 101: fails to compile on OSX #106

Closed

Conversation

njwilliams
Copy link

This makes the code compile without error on OSX: fix a conflict with the equivalent() macro compared to a 'standard' equivalent() function provided on OSX. This is in the key file Samples/NiViewer/glh/glh_linear.h. I also removed unnecessary copies of the glh library so it doesn't need to be fixed in 5 places.

On MacOSX, there is a library function equivalent(). The glh
library included here sets equivalent as a macro which then
causes a cascade of errors. This change uses a name within the
header file that is unlikely to clash with a system name: switch
to glh_equivalent.
The glh header files are used within the sample NiViewer, but
are not used by any other sample. However each sample contains
a complete copy of the unneccessary files.
@njwilliams njwilliams closed this Apr 29, 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.

None yet

1 participant