summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-10-25 23:31:46 -0400
committermidipix <writeonce@midipix.org>2017-10-25 23:40:47 -0400
commit7999c7b9c6f1806c4c99476651967dfba32673c4 (patch)
treea38d8ba197a7e388bbff7b274f427513e81ad407 /src/internal
parent94353c107745b6ea5ad130b0e48e4c9602c690de (diff)
downloadmdso-7999c7b9c6f1806c4c99476651967dfba32673c4.tar.bz2
mdso-7999c7b9c6f1806c4c99476651967dfba32673c4.tar.xz
driver: if --machine is unspecified, match the PE host or cross-target bits.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/mdso_driver_impl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/internal/mdso_driver_impl.h b/src/internal/mdso_driver_impl.h
index dc658af..cfc1bc5 100644
--- a/src/internal/mdso_driver_impl.h
+++ b/src/internal/mdso_driver_impl.h
@@ -8,6 +8,18 @@
#include <mdso/mdso.h>
#include "argv/argv.h"
+#ifdef __PE_
+#define MDSO_DRIVER_PE_HOST (1)
+#else
+#define MDSO_DRIVER_PE_HOST (0)
+#endif
+
+#ifdef __WINNT__
+#define MDSO_DRIVER_WINNT_HOST (1)
+#else
+#define MDSO_DRIVER_WINNT_HOST (0)
+#endif
+
#define MDSO_OPTV_ELEMENTS 64
extern const struct argv_option mdso_default_options[];