libs: utils: use glib's macros
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 15 Apr 2019 11:54:15 +0000 (13:54 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 15 Apr 2019 13:36:28 +0000 (15:36 +0200)
Don't reinvent the wheel.

gst-libs/gst/vaapi/gstvaapiutils.c

index 5fb974f..6b60395 100644 (file)
 #define DEBUG 1
 #include "gstvaapidebug.h"
 
-#define CONCAT(a, b)    CONCAT_(a, b)
-#define CONCAT_(a, b)   a##b
-#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)
+#define STRCASEP(p, x)  STRCASE(G_PASTE(p, x))
+#define STRCASE(x)      case x: return G_STRINGIFY(x)
 
 #if VA_CHECK_VERSION (0,40,0)
 static gchar *