diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/msvc/sys/time.h b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/msvc/sys/time.h
index 07eb3f849..63b1bd429 100644
--- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/msvc/sys/time.h
+++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/msvc/sys/time.h
@@ -2,7 +2,7 @@
 // SPDX-FileCopyrightText: Carles Fernandez-Prades <carles.fernandez(at)cttc.es>
 #ifndef _MSC_VER  // [
 #error "Use this header only with Microsoft Visual C++ compilers!"
-#endif  // _MSC_VER ]
+#else
 
 #ifndef _MSC_SYS_TIME_H
 #define _MSC_SYS_TIME_H
@@ -72,3 +72,6 @@ static inline int gettimeofday(struct timeval *tv, struct timezone *tz)
 
     return 0;
 }
+
+#endif  // _MSC_SYS_TIME_H
+#endif  // _MSC_VER
\ No newline at end of file