remove LIBVINTF_HOST macro

There is a mixed use of LIBVINTF_HOST and LIBVINTF_TARGET,
and for libvintftest, LIBVINTF_HOST is not even defined
properly. Remove the use of LIBVINTF_HOST and replace with
LIBVINTF_TARGET instead.

Test: libvintf_test
Test: vintf_object_test

Change-Id: I557e65376dfd1d0fe953e9a7a03a47f227596460
diff --git a/parse_xml.cpp b/parse_xml.cpp
index 5900f27..9f53d72 100644
--- a/parse_xml.cpp
+++ b/parse_xml.cpp
@@ -513,7 +513,7 @@
             }
         }
 // Do not check for target-side libvintf to avoid restricting ability for upgrade accidentally.
-#ifdef LIBVINTF_HOST
+#ifndef LIBVINTF_TARGET
         if (!checkAdditionalRestrictionsOnHal(*object)) {
             return false;
         }
@@ -521,7 +521,7 @@
         return true;
     }
 
-#ifdef LIBVINTF_HOST
+#ifndef LIBVINTF_TARGET
    private:
     bool checkAdditionalRestrictionsOnHal(const MatrixHal& hal) const {
         if (hal.getName() == "netutils-wrapper") {
@@ -650,7 +650,7 @@
             return false;
         }
 // Do not check for target-side libvintf to avoid restricting upgrade accidentally.
-#ifdef LIBVINTF_HOST
+#ifndef LIBVINTF_TARGET
         if (!checkAdditionalRestrictionsOnHal(*object)) {
             return false;
         }
@@ -658,7 +658,7 @@
         return true;
     }
 
-#ifdef LIBVINTF_HOST
+#ifndef LIBVINTF_TARGET
    private:
     bool checkAdditionalRestrictionsOnHal(const ManifestHal& hal) const {
         if (hal.getName() == "netutils-wrapper") {