summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/ddcxinfos.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ddcprobe/ddcxinfos.c')
-rw-r--r--tools/ddcprobe/ddcxinfos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ddcprobe/ddcxinfos.c b/tools/ddcprobe/ddcxinfos.c
index 7807ebf16..ebfa32df9 100644
--- a/tools/ddcprobe/ddcxinfos.c
+++ b/tools/ddcprobe/ddcxinfos.c
@@ -10,7 +10,7 @@
#include "vbe.h"
#include "vesamode.h"
-#if defined(__i386__) || defined(__x86_64__)
+#ifdef HAVE_VBE
#include "int10/vbios.h"
#else
#define InitInt10(PCI_CONFIG) 0
@@ -54,7 +54,7 @@ int main(void)
printf("%dKB of video ram\n", vbe_info->memory_size / 1024);
/* List supported standard modes */
-#if defined(__i386__) || defined(__x86_64__)
+#ifdef HAVE_VBE
for (j = 0; j < vbe_info->modes; j++)
for (i = 0; known_vesa_modes[i].x; i++)
if (known_vesa_modes[i].number == vbe_info->mode_list[j])