diff options
author | Kent Mein <mein@cs.umn.edu> | 2012-01-12 20:31:27 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2012-01-12 20:31:27 +0400 |
commit | 9dc992a3fd625cdcf1b9611b39b0cd8fa865ac19 (patch) | |
tree | 8ee2ab22376e33ed79fc8a4e55632ac4e38bda49 /source/blender/makesrna/RNA_access.h | |
parent | 8b59efe129748f6043bc2bb0605d977fea9b7183 (diff) |
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
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index 9c8cd831d72..6b12fe4b789 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -996,7 +996,9 @@ StructRNA *ID_code_to_RNA_type(short idcode); /* macro which inserts the function name */ -#ifdef __GNUC__ +/* +*/ +#if defined __GNUC__ || defined __sun # define RNA_warning(format, args...) _RNA_warning("%s: " format "\n", __func__, ##args) #else # define RNA_warning(format, ...) _RNA_warning("%s: " format "\n", __FUNCTION__, __VA_ARGS__) |