Some small fixes to get things compiling on solaris with cmake.

There are also some changes that need to be done to libmv but I'm 
leaving those out so I can get it patched upstream first.

(Only works with gcc/g++ if we want to use sun's compiler we would need
to get rid of all of our annonymous structs which I don't think
we want to do at this point, example:

typedef struct wmNDOFMotionData {
        union {
                float tvec[3]; // translation
                struct { float tx, ty, tz; };   // this would need to be fixed
		// something like this or something similar:
                struct { float x, y, z; } t;
                };
...
)

Kent
This commit is contained in:
2012-01-12 16:31:27 +00:00
parent 8b59efe129
commit 9dc992a3fd
6 changed files with 16 additions and 4 deletions

View File

@@ -47,6 +47,12 @@
#undef _XOPEN_SOURCE
#endif
#if defined(__sun) || defined(sun)
#if defined(_XPG4)
#undef _XPG4
#endif
#endif
#include <Python.h>
extern "C" {