summaryrefslogtreecommitdiff
path: root/storage/connect/cmgoconn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/cmgoconn.cpp')
-rw-r--r--storage/connect/cmgoconn.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/connect/cmgoconn.cpp b/storage/connect/cmgoconn.cpp
index 6ab9e781994..f3fc30fa9e2 100644
--- a/storage/connect/cmgoconn.cpp
+++ b/storage/connect/cmgoconn.cpp
@@ -161,16 +161,16 @@ bool CMgoConn::Connect(PGLOBAL g)
} // endif name
if (!IsInit)
-#if defined(__WIN__)
+#if defined(_WIN32)
__try {
mongo_init(true);
} __except (EXCEPTION_EXECUTE_HANDLER) {
strcpy(g->Message, "Cannot load MongoDB C driver");
return true;
} // end try/except
-#else // !__WIN__
+#else // !_WIN32
mongo_init(true);
-#endif // !__WIN__
+#endif // !_WIN32
Uri = mongoc_uri_new_with_error(Pcg->Uristr, &Error);