diff --git a/CMakeLists.txt b/CMakeLists.txt index db4ccee..7b2e459 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,9 @@ function(generate_config_file) endif() file(MAKE_DIRECTORY "${LIBUSB_GEN_INCLUDES}") + if(NOT MSVC) + set(_GNU_SOURCE TRUE) + endif() configure_file(config.h.in "${LIBUSB_GEN_INCLUDES}/config.h" @ONLY) endfunction()