-2005-05-16 Michael Schaap >cygstart@...>
+2005-05-16 Kees Zeelenberg <kzlq@...>
+
+ * src/dump/dump.c: fixes for -mno-cygwin/mingw
+ compatibility.
+ * common.h: ditto
+ * NEWS: update documentation
+
+2005-05-16 Michael Schaap <cygstart@...>
* src/cygstart/cygstart.c: improve compatibility with
'mount -X' by syncing env between cygwin and windows.
1.2.8
more updates to cygstart (Michael Schaap)
-
+ bugfix for dump under mingw (Kees Zeelenberg)
1.2.7
Updates to cygstart (Anthony Derosa, Michael Schaap)
#ifndef CYGUTILS_COMMON_H
#define CYGUTILS_COMMON_H 1
+#if defined(_WIN32) || defined(__WIN32) || defined(WIN32) || defined(__WIN32__)
+# ifndef WIN32
+# define WIN32 1
+# endif
+# ifndef _WIN32
+# define _WIN32 1
+# endif
+# ifndef __WIN32
+# define __WIN32 1
+# endif
+# ifndef __WIN32__
+# define __WIN32__ 1
+# endif
+#endif
+
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include "common.h"
+#if defined(__WIN32__) && !defined(__CYGWIN__)
+# include <io.h>
+# include <conio.h>
+#endif
+
static const char versionID[] =
"0.1.1";
/* for future CVS */
if (isprint(c & 0x7f)) line[50+i] = c & 0x7f;
if ((c=getc(f)) == EOF) break;
}
- if ((address % 256) == 0) {
-#if defined(WIN32) && !defined(__CYGWIN__)
- while (kbhit())
+ if (address && ((address % 256) == 0)) {
+#if defined(__WIN32__) && !defined(__CYGWIN__)
+ if (isatty (STDOUT_FILENO)) {
+ while (kbhit())
+ getch();
getch();
- getch();
+ }
#endif
puts("");
puts(" Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 2 4 6 8 A C E ");