Skip to content

Commit 6de3f7f

Browse files
committed
CDRIVER-2719 add empty main for windows
1 parent 3ffe7ab commit 6de3f7f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/libmongoc/examples/example-resume.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <mongoc.h>
2+
13
#ifndef _WIN32
24
/* An example implementation of custom resume logic in a change stream.
35
* example-resume starts a client-wide change stream and persists the resume
@@ -9,8 +11,6 @@
911
*/
1012
#include <unistd.h>
1113

12-
#include <mongoc.h>
13-
1414
static const char *RESUME_TOKEN_PATH = "resume-token.json";
1515

1616
static bool
@@ -160,4 +160,9 @@ main ()
160160
mongoc_cleanup ();
161161
return exit_code;
162162
}
163+
#else
164+
int main() {
165+
printf("example-resume is not implemented on Windows.\n");
166+
return 1;
167+
}
163168
#endif

0 commit comments

Comments
 (0)