aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_get_colour_model_conversion_matrix_float.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-26 18:28:06 +0100
committerMattias Andrée <maandree@kth.se>2023-01-26 18:28:06 +0100
commit27289762a392650454942277e15f60d13f187992 (patch)
treea977338fce9d5d90d3b9c61a38ea785f5d79baea /libglitter_get_colour_model_conversion_matrix_float.c
parentMakefile: fix installation of man pages (diff)
downloadlibglitter-27289762a392650454942277e15f60d13f187992.tar.gz
libglitter-27289762a392650454942277e15f60d13f187992.tar.bz2
libglitter-27289762a392650454942277e15f60d13f187992.tar.xz
Fix and test libglitter_get_colour_model_conversion_matrix_{double,float}
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libglitter_get_colour_model_conversion_matrix_float.c')
-rw-r--r--libglitter_get_colour_model_conversion_matrix_float.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libglitter_get_colour_model_conversion_matrix_float.c b/libglitter_get_colour_model_conversion_matrix_float.c
index 771151d..059afaa 100644
--- a/libglitter_get_colour_model_conversion_matrix_float.c
+++ b/libglitter_get_colour_model_conversion_matrix_float.c
@@ -37,11 +37,9 @@ libglitter_get_colour_model_conversion_matrix_float(float matrix[3][3], float c1
#else
-int
-main(void)
-{
- return 0; /* TODO add test */
-}
+#define libglitter_get_colour_model_conversion_matrix_double libglitter_get_colour_model_conversion_matrix_float
+#define double float
+#include "libglitter_get_colour_model_conversion_matrix_double.c"
#endif