libs: utils: use glib's macros

Don't reinvent the wheel.
This commit is contained in:
Víctor Manuel Jáquez Leal 2019-04-15 13:54:15 +02:00
parent e88f349c6f
commit 7c0ec687cd

View file

@ -34,12 +34,8 @@
#define DEBUG 1 #define DEBUG 1
#include "gstvaapidebug.h" #include "gstvaapidebug.h"
#define CONCAT(a, b) CONCAT_(a, b) #define STRCASEP(p, x) STRCASE(G_PASTE(p, x))
#define CONCAT_(a, b) a##b #define STRCASE(x) case x: return G_STRINGIFY(x)
#define STRINGIFY(x) STRINGIFY_(x)
#define STRINGIFY_(x) #x
#define STRCASEP(p, x) STRCASE(CONCAT(p, x))
#define STRCASE(x) case x: return STRINGIFY(x)
#if VA_CHECK_VERSION (0,40,0) #if VA_CHECK_VERSION (0,40,0)
static gchar * static gchar *