From a91e34a8a2ae3b19726f5ecca256b34464af8d40 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Wed, 31 Jul 2019 23:18:41 +0200 Subject: Imakefile: make NXAGENT_RANDR_MODE_PREFIX configurable via macro --- nx-X11/programs/Xserver/hw/nxagent/Utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nx-X11/programs/Xserver/hw/nxagent/Utils.h') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Utils.h b/nx-X11/programs/Xserver/hw/nxagent/Utils.h index 0aebda839..e61a79144 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Utils.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Utils.h @@ -47,4 +47,8 @@ static inline const char * validateString(const char *str) { #define SAFE_XFree(what) do {if (what) {XFree(what); what = NULL;}} while (0) #define SAFE_free(what) do {free(what); what = NULL;} while (0) +/* some helper macros to produce a quoted string from other macros */ +#define QUOTEEXP(str) #str +#define QUOTE(str) QUOTEEXP(str) + #endif /* __Utils_H__ */ -- cgit v1.2.3