Browse Source

Make adl attempt to compile only on win32 or linux since there is no support for it on onther platforms, and fix sleep() definition on win32.

Con Kolivas 14 years ago
parent
commit
fd23532bdb
1 changed files with 3 additions and 2 deletions
  1. 3 2
      adl.c

+ 3 - 2
adl.c

@@ -1,6 +1,6 @@
 #include "config.h"
 
-#ifdef HAVE_ADL
+#if defined(HAVE_ADL) && (defined(__linux) || defined (WIN32))
 
 #include <stdio.h>
 #include <curses.h>
@@ -12,9 +12,10 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 #include <unistd.h>
-#else
+#else /* WIN32 */
 #include <windows.h>
 #include <tchar.h>
+#define sleep(x) Sleep(x)
 #endif
 #include "adl_functions.h"