--- ray/src/common/bsdf.h 2011/06/09 17:09:39 2.15 +++ ray/src/common/bsdf.h 2011/08/21 22:38:12 2.16 @@ -1,4 +1,4 @@ -/* RCSid $Id: bsdf.h,v 2.15 2011/06/09 17:09:39 greg Exp $ */ +/* RCSid $Id: bsdf.h,v 2.16 2011/08/21 22:38:12 greg Exp $ */ /* * bsdf.h * @@ -71,10 +71,10 @@ typedef struct { } SDValue; /* Cached, encoded, cumulative distribution for one incident (solid) angle */ -#define SD_CDIST_BASE double cTotal; \ - struct SDCDst_s *next +#define SD_CDIST_BASE(styp) double cTotal; \ + struct styp *next typedef struct SDCDst_s { - SD_CDIST_BASE; /* base fields first */ + SD_CDIST_BASE(SDCDst_s); /* base fields first */ /* ...encoded distribution extends struct */ } SDCDst;