diff --git a/common/cpp/include/system_wrappers/system_io.h b/common/cpp/include/system_wrappers/system_io.h
index ee2683eb96124203bc5373bd8cfd64fecb925c98..ee43893989822e20af05ef9968c21cb3bf046736 100644
--- a/common/cpp/include/system_wrappers/system_io.h
+++ b/common/cpp/include/system_wrappers/system_io.h
@@ -5,6 +5,7 @@
 
 #ifdef _WIN32
 #include <windows.h>
+#undef GetObject
 typedef SSIZE_T ssize_t;
 #endif