Instead of mucking around with CFLAGS in configure.ac, preventing
users from setting their own CFLAGS, just define the
PIXMAN_USE_INTERNAL_API and PIXMAN_DISABLE_DEPRECATED in
pixman-private.h
CFLAGS="-O -g"
fi
-CFLAGS="$CFLAGS -DPIXMAN_DISABLE_DEPRECATED -DPIXMAN_INTERNAL_API"
-
#
# We ignore pixman_major in the version here because the major version should
# always be encoded in the actual library name. Ie., the soname is:
#ifndef PIXMAN_PRIVATE_H
#define PIXMAN_PRIVATE_H
+#define PIXMAN_DISABLE_DEPRECATED
+#define PIXMAN_USE_INTERNAL_API
+
#include "pixman.h"
#include <time.h>
#include <assert.h>
PIXMAN_OP_HSL_COLOR = 0x3d,
PIXMAN_OP_HSL_LUMINOSITY = 0x3e,
-#ifdef PIXMAN_INTERNAL_API
+#ifdef PIXMAN_USE_INTERNAL_API
PIXMAN_N_OPERATORS,
PIXMAN_OP_NONE = PIXMAN_N_OPERATORS
#endif
case PIXMAN_OP_HSL_SATURATION:
case PIXMAN_OP_HSL_COLOR:
case PIXMAN_OP_HSL_LUMINOSITY:
- case PIXMAN_OP_NONE:
default:
abort();
}
#include <stdio.h>
#include <stdlib.h>
#include <config.h>
-#include "pixman.h"
#include "pixman-private.h"
+#include "pixman.h"
#define FALSE 0
#define TRUE 1