already defined.
2009-01-09 Joel Brobecker <brobecker@adacore.com>
+ * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
+ already defined.
+
+2009-01-09 Joel Brobecker <brobecker@adacore.com>
+
* win32-nat.c (get_image_name, win32_xfer_memory): Fix type
definition of local variable "done".
(info_w32_command, handle_exception): Remove unnecessary cast.
#endif
#include <psapi.h>
+#ifndef CONTEXT_EXTENDED_REGISTERS
+/* This macro is only defined on ia32. It only makes sense on this target,
+ so define it as zero if not already defined. */
+#define CONTEXT_EXTENDED_REGISTERS 0
+#endif
+
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \
| CONTEXT_EXTENDED_REGISTERS
#endif
#include <psapi.h>
+#ifndef CONTEXT_EXTENDED_REGISTERS
+/* This macro is only defined on ia32. It only makes sense on this target,
+ so define it as zero if not already defined. */
+#define CONTEXT_EXTENDED_REGISTERS 0
+#endif
+
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \
| CONTEXT_EXTENDED_REGISTERS