Initial cleanups based on target-specific defines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3592 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c
index 940d188..f7467f9 100644
--- a/coregrind/m_debuglog.c
+++ b/coregrind/m_debuglog.c
@@ -55,9 +55,7 @@
/* ----- x86-linux specifics ----- */
-/* Arse! Really I want to test VG_PLATFORM, but this does not
- seem to be possible. */
-#if defined(__i386__) && defined(__linux__)
+#if defined(VGP_x86_linux)
static UInt local_sys_write_stderr ( HChar* buf, Int n )
{
@@ -94,7 +92,7 @@
return __res;
}
-#elif defined(__x86_64__) && defined(__linux__)
+#elif defined(VGP_amd64_linux)
static UInt local_sys_write_stderr ( HChar* buf, Int n )
{
@@ -128,7 +126,7 @@
}
#else
-#error Unknown VG_PLATFORM
+# error Unknown platform
#endif