msm_shared: Move the method set_os_version_with_date inside #if

Use the method set_os_version_with_date, which tries to
access the field of osversion from boot image header, only
when OSVERSION_IN_BOOTIMAGE is defined in make file.

Change-Id: If087f1173b2c3fd86f2ebd263227013705b97224
diff --git a/platform/msm_shared/boot_verifier.c b/platform/msm_shared/boot_verifier.c
index 6de77bf..336efa5 100644
--- a/platform/msm_shared/boot_verifier.c
+++ b/platform/msm_shared/boot_verifier.c
@@ -891,6 +891,7 @@
 	return oem_keystore;
 }
 
+#if OSVERSION_IN_BOOTIMAGE
 void set_os_version_with_date(unsigned char* img_addr, uint32_t system_security_level)
 {
 	boot_img_hdr *img_hdr = NULL;
@@ -910,7 +911,6 @@
 	}
 }
 
-#if OSVERSION_IN_BOOTIMAGE
 void set_os_version(unsigned char* img_addr)
 {
 	boot_img_hdr *img_hdr = NULL;
@@ -929,6 +929,11 @@
 {
 	return;
 }
+
+void set_os_version_with_date(unsigned char* img_addr, uint32_t system_security_level)
+{
+	return;
+}
 #endif
 
 int set_verified_boot_hash (const char *vbh, size_t vbh_size)