glib/valgrind.h: Disable inline ASM on MSVC x64 builds

Visual Studio x64 builds do not allow inline assembly code, so we need
to re-add the code that disables inline assembly when we build with
Visual Studio for x64 builds, as we did before.  This is necessary when
we update the included valgrind.h.
This commit is contained in:
Chun-wei Fan 2018-05-25 17:14:11 +08:00
parent 8f2d68da65
commit bbcce75d4e

View File

@ -171,6 +171,16 @@
# endif
#endif
/* XXX: Unfortunately x64 Visual C++ does not suport inline asms,
* so disable the use of valgrind's inline asm's for x64 Visual C++
* builds, so that x64 Visual C++ builds of GLib can be maintained
*/
#if defined (PLAT_amd64_win64) && defined (_MSC_VER)
# if !defined(NVALGRIND)
# define NVALGRIND 1
# endif
#endif
/* ------------------------------------------------------------------ */
/* ARCHITECTURE SPECIFICS for SPECIAL INSTRUCTIONS. There is nothing */