mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
internal: Add CONCAT macro
Using the two-step idiom to force resolution of other macros, e.g.: #define bar BAR CONCAT_(foo, bar) // foobar CONCAT(foo, bar) // fooBAR Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f468f0a634
commit
3f19e116cd
@ -100,6 +100,9 @@
|
|||||||
#define STREQ_NULLABLE(a, b) (g_strcmp0(a, b) == 0)
|
#define STREQ_NULLABLE(a, b) (g_strcmp0(a, b) == 0)
|
||||||
#define STRNEQ_NULLABLE(a, b) (g_strcmp0(a, b) != 0)
|
#define STRNEQ_NULLABLE(a, b) (g_strcmp0(a, b) != 0)
|
||||||
|
|
||||||
|
#define CONCAT_(a, b) a ## b
|
||||||
|
#define CONCAT(a, b) CONCAT_(a, b)
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# ifndef O_CLOEXEC
|
# ifndef O_CLOEXEC
|
||||||
# define O_CLOEXEC _O_NOINHERIT
|
# define O_CLOEXEC _O_NOINHERIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user