mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 17:55:45 +08:00
build: Fix build on Windows
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
#ifndef SWIFT_SIM_XSWIFTBUS_DBUSCONNECTION_H
|
||||
#define SWIFT_SIM_XSWIFTBUS_DBUSCONNECTION_H
|
||||
|
||||
#ifndef NOMINMAX
|
||||
// windows.h min/max might be imported via dbus.h
|
||||
# define NOMINMAX
|
||||
#endif
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
#include <event2/event.h>
|
||||
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
#ifndef SWIFT_SIM_XSWIFTBUS_DBUSSERVER_H
|
||||
#define SWIFT_SIM_XSWIFTBUS_DBUSSERVER_H
|
||||
|
||||
#ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
#endif
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
#include <event2/event.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user