- Made sure that the files that contains the declarations
  of implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.

diff --git a/msdos/ppdev.c b/msdos/ppdev.c
index c8b49fc..78a102a 100644
--- a/msdos/ppdev.c
+++ b/msdos/ppdev.c
@@ -4,11 +4,7 @@
 
 #include "config.h"
 
-#include "debugtools.h"
-
-DEFAULT_DEBUG_CHANNEL(int);
-
-#ifdef  HAVE_PPDEV
+#ifdef HAVE_PPDEV
 
 #include <stdlib.h>
 #include <sys/types.h>
@@ -21,6 +17,11 @@
 #include "winerror.h"
 #include "winreg.h"
 
+#include "miscemu.h"
+
+#include "debugtools.h"
+
+DEFAULT_DEBUG_CHANNEL(int);
 
 typedef struct _PPDEVICESTRUCT{
   int fd; /* NULL if device not available */
@@ -272,6 +273,8 @@
 
 #else /* HAVE_PPDEV */
 
+#include "windef.h"
+
 char IO_pp_init(void)
 {
   return 1;