aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_subpixel_order_count.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgamma_subpixel_order_count.c')
-rw-r--r--libgamma_subpixel_order_count.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgamma_subpixel_order_count.c b/libgamma_subpixel_order_count.c
index d77a748..05adb51 100644
--- a/libgamma_subpixel_order_count.c
+++ b/libgamma_subpixel_order_count.c
@@ -2,8 +2,12 @@
#include "common.h"
+#define X(...) +1
+
/**
* The number of values defined in `libgamma_subpixel_order_t`
* in the version of the library the program is linked against
*/
-const int libgamma_subpixel_order_count = LIBGAMMA_SUBPIXEL_ORDER_COUNT;
+const int libgamma_subpixel_order_count = LIST_SUBPIXEL_ORDERS(X);
+
+#undef X