Fixes: 856e84083eee9b22408a ("mesa/st: add sampler uniforms")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
return vsnprintf(*ret, r + 1, format, ap);
}
+#define asprintf util_asprintf
+static inline char *
+util_asprintf(const char *fmt, ...)
+{
+ char *ptr;
+ va_list args;
+ va_start(args, fmt);
+ if (vasprintf(&ptr, fmt, args) == -1)
+ ptr = NULL;
+ va_end(args);
+ return ptr;
+}
#define strcasecmp stricmp
#define strdup _strdup