mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
examples: remove obsolete workaround for mingw
The build still succeeds with the workaround removed, so whatever was causing the problem no longer exists. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
7c8b144d4a
commit
4d61dd5abf
@ -34,21 +34,6 @@
|
|||||||
static bool debug;
|
static bool debug;
|
||||||
static bool run_top;
|
static bool run_top;
|
||||||
|
|
||||||
/* On mingw, there's a header file that poisons the well:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* CC domtop.o
|
|
||||||
*domtop.c:40:0: warning: "ERROR" redefined [enabled by default]
|
|
||||||
* #define ERROR(...) \
|
|
||||||
* ^
|
|
||||||
*In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
|
|
||||||
* from /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
|
|
||||||
* from ../../gnulib/lib/unistd.h:48,
|
|
||||||
* from domtop.c:35:
|
|
||||||
* /usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h:75:0: note: this is the location of the previous definition
|
|
||||||
* #define ERROR 0
|
|
||||||
*/
|
|
||||||
#undef ERROR
|
|
||||||
#define ERROR(...) \
|
#define ERROR(...) \
|
||||||
do { \
|
do { \
|
||||||
fprintf(stderr, "ERROR %s:%d : ", __FUNCTION__, __LINE__); \
|
fprintf(stderr, "ERROR %s:%d : ", __FUNCTION__, __LINE__); \
|
||||||
|
@ -30,20 +30,6 @@
|
|||||||
|
|
||||||
static int debug;
|
static int debug;
|
||||||
|
|
||||||
/* On mingw, there's a header file that poisons the well:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* CC domtop.o
|
|
||||||
*domtop.c:40:0: warning: "ERROR" redefined [enabled by default]
|
|
||||||
* #define ERROR(...) \
|
|
||||||
* ^
|
|
||||||
*In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
|
|
||||||
* from /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
|
|
||||||
* from ../../gnulib/lib/unistd.h:48,
|
|
||||||
* from domtop.c:35:
|
|
||||||
* /usr/i686-w64-mingw32/sys-root/mingw/include/wingdi.h:75:0: note: this is the location of the previous definition
|
|
||||||
* #define ERROR 0
|
|
||||||
*/
|
|
||||||
#undef ERROR
|
#undef ERROR
|
||||||
#define ERROR(...) \
|
#define ERROR(...) \
|
||||||
do { \
|
do { \
|
||||||
|
Loading…
Reference in New Issue
Block a user