We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5667c4 + 4d2731f commit cf6483fCopy full SHA for cf6483f
src/mongoc/mongoc-uri.c
@@ -26,11 +26,6 @@
26
#include "mongoc-uri.h"
27
28
29
-#ifndef MONGOC_DEFAULT_PORT
30
-# define MONGOC_DEFAULT_PORT 27017
31
-#endif
32
-
33
34
#if defined(_WIN32) && !defined(strcasecmp)
35
# define strcasecmp _stricmp
36
#endif
@@ -167,7 +162,7 @@ static bool
167
162
mongoc_uri_parse_host6 (mongoc_uri_t *uri,
168
163
const char *str)
169
164
{
170
- uint16_t port = 27017;
165
+ uint16_t port = MONGOC_DEFAULT_PORT;
171
166
const char *portstr;
172
const char *end_host;
173
char *hostname;
src/mongoc/mongoc-uri.h
@@ -30,6 +30,11 @@
#include "mongoc-write-concern.h"
+#ifndef MONGOC_DEFAULT_PORT
+# define MONGOC_DEFAULT_PORT 27017
+#endif
+
37
38
BSON_BEGIN_DECLS
39
40
0 commit comments