File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -796,7 +796,9 @@ endif ()
796
796
# examples/
797
797
mongoc_add_example (example-client TRUE ${PROJECT_SOURCE_DIR} /examples/example-client.c)
798
798
mongoc_add_example (example-collection-watch TRUE ${PROJECT_SOURCE_DIR} /examples/example-collection-watch.c)
799
- mongoc_add_example (example-resume TRUE ${PROJECT_SOURCE_DIR} /examples/example-resume.c)
799
+ if (NOT WIN32 )
800
+ mongoc_add_example (example-resume TRUE ${PROJECT_SOURCE_DIR} /examples/example-resume.c)
801
+ endif ()
800
802
mongoc_add_example (example-start -at-optime TRUE ${PROJECT_SOURCE_DIR} /examples/example-start -at-optime.c)
801
803
mongoc_add_example (example-command -monitoring TRUE ${PROJECT_SOURCE_DIR} /examples/example-command -monitoring.c)
802
804
mongoc_add_example (example-command -with-opts TRUE ${PROJECT_SOURCE_DIR} /examples/example-command -with-opts.c)
Original file line number Diff line number Diff line change 1
1
#include <mongoc.h>
2
2
3
- #ifndef _WIN32
4
3
/* An example implementation of custom resume logic in a change stream.
5
4
* example-resume starts a client-wide change stream and persists the resume
6
5
* token in a file "resume-token.json". On restart, if "resume-token.json"
@@ -160,9 +159,3 @@ main ()
160
159
mongoc_cleanup ();
161
160
return exit_code ;
162
161
}
163
- #else
164
- int main () {
165
- printf ("example-resume is not implemented on Windows.\n" );
166
- return 1 ;
167
- }
168
- #endif
You can’t perform that action at this time.
0 commit comments