diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-04 21:24:59 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-04 21:24:59 +0100 |
commit | 15e3ff763c33cb309dd07cfab98312de3375e630 (patch) | |
tree | 5d9ec1be1218217c005640e7dc747d2924fbb0ba /src/blackbody.c | |
parent | remove unused macros (diff) | |
download | libred-15e3ff763c33cb309dd07cfab98312de3375e630.tar.gz libred-15e3ff763c33cb309dd07cfab98312de3375e630.tar.bz2 libred-15e3ff763c33cb309dd07cfab98312de3375e630.tar.xz |
dedup ciexyy_to_srgb
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/blackbody.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/blackbody.c b/src/blackbody.c index 1fb3689..70b58db 100644 --- a/src/blackbody.c +++ b/src/blackbody.c @@ -14,6 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef LIBRED_COMPILING_PARSER #include "libred.h" #include "macros.h" #include <math.h> @@ -21,7 +22,6 @@ #include <fcntl.h> - /** * The file descriptor to the colour lookup table. */ @@ -56,6 +56,7 @@ void libred_term_colour(void) } +#endif /** * Convert from CIE xyY to [0, 1] sRGB. * @@ -84,6 +85,7 @@ static void ciexyy_to_srgb(double x, double y, double Y, double *r, double *g, d /* Convert [0, 1] linear RGB to [0, 1] sRGB. */ SRGB(*r), SRGB(*g), SRGB(*b); } +#ifndef LIBRED_COMPILING_PARSER /** @@ -159,4 +161,5 @@ int libred_get_colour(long int temp, double *r, double *g, double *b) fail: return -1; } +#endif |