make embryo compile with vc++ and suncc. No change for gcc.
Though i don't know if it is the correct fix... Raster, if you have some time, can you check it, please ? SVN revision: 43261
This commit is contained in:
parent
06b3646593
commit
61bdd4cb94
|
@ -86,10 +86,17 @@ extern "C" {
|
||||||
Embryo_Cell c;
|
Embryo_Cell c;
|
||||||
} Embryo_Float_Cell;
|
} Embryo_Float_Cell;
|
||||||
|
|
||||||
|
#if defined _MSC_VER || defined __SUNPRO_C
|
||||||
/** Float to Embryo_Cell */
|
/** Float to Embryo_Cell */
|
||||||
#define EMBRYO_FLOAT_TO_CELL(f) ((Embryo_Float_Cell) f).c
|
# define EMBRYO_FLOAT_TO_CELL(f) (((Embryo_Float_Cell *)&(f))->c)
|
||||||
/** Embryo_Cell to float */
|
/** Embryo_Cell to float */
|
||||||
#define EMBRYO_CELL_TO_FLOAT(c) ((Embryo_Float_Cell) c).f
|
# define EMBRYO_CELL_TO_FLOAT(c) (((Embryo_Float_Cell *)&(c))->f)
|
||||||
|
#else
|
||||||
|
/** Float to Embryo_Cell */
|
||||||
|
# define EMBRYO_FLOAT_TO_CELL(f) ((Embryo_Float_Cell) f).c
|
||||||
|
/** Embryo_Cell to float */
|
||||||
|
# define EMBRYO_CELL_TO_FLOAT(c) ((Embryo_Float_Cell) c).f
|
||||||
|
#endif
|
||||||
|
|
||||||
EAPI int embryo_init(void);
|
EAPI int embryo_init(void);
|
||||||
EAPI int embryo_shutdown(void);
|
EAPI int embryo_shutdown(void);
|
||||||
|
|
Loading…
Reference in New Issue