diff --git a/meson.build b/meson.build index de4b7c3..d410369 100644 --- a/meson.build +++ b/meson.build @@ -7,9 +7,15 @@ gst_req = '>= 1.20.2' aws_cpp_sdk_req = '>= 1.10.30' gst_s3_version = meson.project_version() - -c_args = ['-std=c17'] -cpp_args = ['-std=c++17'] +host_system = host_machine.system() + +if host_system == 'windows' + c_args = ['/std:c17'] + cpp_args = ['/std:c++20'] +else + c_args = ['-std=c17'] + cpp_args = ['-std=c++17'] +endif apiversion = '1.0'