jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Jed on mingw


Hi.

I needed to apply this patch to compile WJED 99-17.200 on the
latest MINGW with gcc (GCC) 3.4.2 (mingw-special).

Apparently the function sleep was removed from mingw runtime and
has to be replaced with Sleep.

Marko
--- main.c	2006-03-24 12:38:01.015625000 +0100
+++ /cygdrive/s/jed/jed-B0.99-17.200/src/main.c	2006-02-13 18:51:58.000000000 +0100
@@ -12,7 +12,7 @@
 #ifdef __WIN32__
 /* This needs to go first before stdio is included. */
 # include <windows.h>
-# if !defined(__CYGWIN32__)
+# if !defined(__MINGW32__) && !defined(__CYGWIN32__)
 #  define sleep Sleep
 # endif
 #endif
--- sysdep.c	2006-03-24 12:38:50.000000000 +0100
+++ /cygdrive/s/jed/jed-B0.99-17.200/src/sysdep.c	2006-02-24 09:43:34.000000000 +0100
@@ -35,7 +35,7 @@
 #  undef VOID
 # endif
 # include <windows.h>
-# if !defined(__CYGWIN32__)
+# if !defined(__MINGW32__) && !defined(__CYGWIN32__)
 #  define sleep Sleep
 # endif
 # undef _POSIX_SOURCE

[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]