aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/winNT_portio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/winNT_portio.c b/src/winNT_portio.c
index 977395a..c6ffe0c 100644
--- a/src/winNT_portio.c
+++ b/src/winNT_portio.c
@@ -6,7 +6,7 @@
* to plug this on the usb bus.
* if the interface changes, only this file has to be adopted for the target system
*/
-#ifdef __WIN32__
+#if defined __WIN32__ && defined Z_WANT_LPT
#include <stdio.h>
#include <windows.h>
@@ -124,7 +124,7 @@ int open_port(int port)
return(0);
}
}
-#endif /* __WIN32__ */
+#endif /* __WIN32__ & Z_WANT_LPT */
void z_winNT_portio_setup(void)
{