diff --git a/src/conf/checkpoint_conf.c b/src/conf/checkpoint_conf.c index 5ce4cc485359379eae0c597a66ee05aac223e152..5f4c275dd86aba57e536f2fe866864d55e236a83 100644 --- a/src/conf/checkpoint_conf.c +++ b/src/conf/checkpoint_conf.c @@ -21,8 +21,6 @@ #include -#include - #include "configmake.h" #include "internal.h" #include "virbitmap.h" diff --git a/src/util/viratomic.h b/src/util/viratomic.h index 35800dafcd22705f0eed06139c594eb70ba485c8..c6e7668324830c031ad1ce22736d574c4f7606b6 100644 --- a/src/util/viratomic.h +++ b/src/util/viratomic.h @@ -218,7 +218,10 @@ VIR_STATIC unsigned int virAtomicIntXor(volatile unsigned int *atomic, # ifdef VIR_ATOMIC_OPS_WIN32 +# pragma push_macro("DATADIR") /* If "configmake.h" was included first */ +# undef DATADIR # include +# pragma pop_macro("DATADIR") # include # include # if !defined(_M_AMD64) && !defined (_M_IA64) && !defined(_M_X64)