mrG7 / boxplorer2

Automatically exported from code.google.com/p/boxplorer2
Other
3 stars 0 forks source link

OSX will complain about ambiguous definition of hash in uniform.h #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile on OSX, current version.
2. Will give the error at line 82 of uniform.h

I know the fix (attached the fix):

[1] OSX has two definitions of hash, in the top of the file there is am #if 
defined(__GNUC__) || defined(__APPLE__) to catch this and force usage of the 
__gnu_cxx definition, however usage of that namespace ends right there.
[2] In the class Uniforms it is used again though, so the fix is to precede 
that class with this to force usage of the __gnu_cxx definition
#if defined(__GNUC__) || defined(__APPLE__)
namespace __gnu_cxx {
#endif
[3] And after the class put this
#if defined(__GNUC__) || defined(__APPLE__)
}
#endif

Tested and fixes it. By the way, awesome programme :-).

Original issue reported on code.google.com by Jacques....@gmail.com on 13 Apr 2014 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
Does https://code.google.com/p/boxplorer2/source/detail?r=358 also fix it?
I ran into this after updating to 10.9
Not sure this does not break pre-10.9 though.

Original comment by marius.s...@gmail.com on 23 Apr 2014 at 11:27

GoogleCodeExporter commented 9 years ago

Original comment by marius.s...@gmail.com on 26 Jun 2014 at 6:43