On Windows systems, where strtok_r is not available, strtok_s could be
used but this needs the C Run-Time library (msvcrt.dll or msvcr80.dll)
and we can't distribute it.
So for now, when strtok_r is not available, just print a message to warn
the user that the '-o' options is not available.
if (HAVE_SIGACTION)
add_definitions("-DHAVE_SIGACTION")
endif()
+
+ check_symbol_exists(strtok_r "string.h" HAVE_STRTOK_R)
+ if (HAVE_STRTOK_R)
+ add_definitions("-DHAVE_STRTOK_R")
+ endif()
set(CMAKE_REQUIRED_DEFINITIONS)
# xcb is used to retrieve the full screen dimensions when using x11grab
input_path = strdup(optarg);
break;
case 'o':
+#ifdef HAVE_STRTOK_R
/*
* parse suboptions, the expected format is something
* like:
av_dict_set(&options, subopt_name, subopt_value, 0);
}
free(subopts_saved);
+#else
+ fprintf(stderr, "Option '-o' not implemented\n");
+#endif
break;
case 's':
rescale_method = atoi(optarg);