Use of designated initializers in Visual c++

Got error while building project with included lvgl library with Visual Studio 2019 Visual C++ :

use of designated initializers requires at least '/std:c++latest'   

One of examples compiler complains about:

static inline void lv_style_set_radius(lv_style_t * style, lv_coord_t value)
    lv_style_value_t v = {
        .num = (int32_t)value
    lv_style_set_prop(style, LV_STYLE_RADIUS, v);

How to enable such feature in Visual C++?

If VC++ options work similarly to GCC, all you should need to do is add the mentioned option to your compiler flags.