VirtualBox

Changeset 18472 in vbox for trunk/src/recompiler_new


Ignore:
Timestamp:
Mar 29, 2009 12:24:23 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45305
Message:

qemu-common.h: Fixed incorrect PRI* macros. (caused warnings on 64-bit windows)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/qemu-common.h

    r17040 r18472  
    55#ifdef VBOX
    66
    7 #include <string.h>
     7# include <string.h>
     8# if !defined(_MSC_VER)
     9#  include <inttypes.h>
     10# endif
    811
    912void pstrcpy(char *buf, int buf_size, const char *str);
    1013char *pstrcat(char *buf, int buf_size, const char *s);
    11 #define snprintf RTStrPrintf
    12 #ifndef PRId32
    13 #define PRId32 "I32d"
    14 #define PRIx32 "I32x"
    15 #define PRIu32 "I32u"
    16 #define PRIo32 "I32o"
    17 #define PRId64 "I64d"
    18 #define PRIx64 "I64x"
    19 #define PRIu64 "I64u"
    20 #define PRIo64 "I64o"
    21 #endif
     14# define snprintf RTStrPrintf
    2215
    23 #else
     16# ifdef _MSC_VER
     17#  define PRId32 "d"
     18#  define PRIx32 "x"
     19#  define PRIu32 "u"
     20#  define PRIo32 "o"
     21#  ifdef DEBUG_TMP_LOGGING
     22#   define PRId64 "I64d"
     23#   define PRIx64 "I64x"
     24#   define PRIu64 "I64u"
     25#   define PRIo64 "I64o"
     26#  else
     27#   define PRId64 "RI64"
     28#   define PRIx64 "RX64"
     29#   define PRIu64 "RU64"
     30#  endif
     31# endif /* _MSC_VER */
     32
     33#else /* !VBOX */
    2434/* we put basic includes here to avoid repeating them in device drivers */
    2535#include <stdlib.h>
     
    161171/* Force QEMU to stop what it's doing and service IO */
    162172void qemu_service_io(void);
    163 #endif // !VBOX
     173#endif /* !VBOX */
    164174
    165175#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette