--- ray/src/px/ciq.h 1989/02/02 10:48:58 1.1 +++ ray/src/px/ciq.h 2003/07/14 22:24:00 2.3 @@ -1,8 +1,16 @@ +/* RCSid: $Id: ciq.h,v 2.3 2003/07/14 22:24:00 schorsch Exp $ */ + +#ifndef _RAD_CIQ_H_ +#define _RAD_CIQ_H_ + #include -/* SCCSid "$SunId$ LBL" */ #include "pic.h" +#ifdef __cplusplus +extern "C" { +#endif + #define red(i) ((i)>>7&0xf8|4) /* 5 bits red, 5 bits green, 5 bits blue */ #define gre(i) ((i)>>2&0xf8|4) #define blu(i) ((i)<<3&0xf8|4) @@ -17,3 +25,10 @@ extern int n; /* number of colors in it */ #define line3alloc(xdim) (rgbpixel *)emalloc(sizeof(rgbpixel)*xdim) extern char *emalloc(); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_CIQ_H_ */ +