All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: qemu-trivial <qemu-trivial@nongnu.org>
Cc: Stefan Weil <weil@mail.berlios.de>, qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-trivial] [PATCH] Avoid double definitions of PRI*64
Date: Thu, 23 Jun 2011 10:15:58 +0200	[thread overview]
Message-ID: <4E02F63E.3010908@web.de> (raw)

From: Jan Kiszka <jan.kiszka@siemens.com>

Recent mingw32 provide those defines.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 qemu-common.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/qemu-common.h b/qemu-common.h
index 109498d..7ca7e57 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -113,12 +113,15 @@ static inline char *realpath(const char *path, char *resolved_path)
     return resolved_path;
 }
 
+#ifndef PRId64
 #define PRId64 "I64d"
 #define PRIx64 "I64x"
 #define PRIu64 "I64u"
 #define PRIo64 "I64o"
 #endif
 
+#endif
+
 /* FIXME: Remove NEED_CPU_H.  */
 #ifndef NEED_CPU_H
 


WARNING: multiple messages have this Message-ID (diff)
From: Jan Kiszka <jan.kiszka@web.de>
To: qemu-trivial <qemu-trivial@nongnu.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] Avoid double definitions of PRI*64
Date: Thu, 23 Jun 2011 10:15:58 +0200	[thread overview]
Message-ID: <4E02F63E.3010908@web.de> (raw)

From: Jan Kiszka <jan.kiszka@siemens.com>

Recent mingw32 provide those defines.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 qemu-common.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/qemu-common.h b/qemu-common.h
index 109498d..7ca7e57 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -113,12 +113,15 @@ static inline char *realpath(const char *path, char *resolved_path)
     return resolved_path;
 }
 
+#ifndef PRId64
 #define PRId64 "I64d"
 #define PRIx64 "I64x"
 #define PRIu64 "I64u"
 #define PRIo64 "I64o"
 #endif
 
+#endif
+
 /* FIXME: Remove NEED_CPU_H.  */
 #ifndef NEED_CPU_H
 

             reply	other threads:[~2011-06-23  8:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-23  8:15 Jan Kiszka [this message]
2011-06-23  8:15 ` [Qemu-devel] [PATCH] Avoid double definitions of PRI*64 Jan Kiszka
2011-06-23 13:35 ` [Qemu-trivial] " Stefan Hajnoczi
2011-06-23 13:35   ` [Qemu-devel] " Stefan Hajnoczi
2011-06-23 14:32   ` Stefan Weil
2011-06-23 14:32     ` [Qemu-devel] " Stefan Weil
2011-06-24  5:41     ` Stefan Hajnoczi
2011-06-24  5:41       ` [Qemu-devel] " Stefan Hajnoczi
2011-06-24  6:11       ` Stefan Weil
2011-06-24  6:11         ` [Qemu-devel] " Stefan Weil
2011-06-24  6:12         ` Stefan Hajnoczi
2011-06-24  6:12           ` [Qemu-devel] " Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E02F63E.3010908@web.de \
    --to=jan.kiszka@web.de \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=weil@mail.berlios.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.