kopia lustrzana https://github.com/stlink-org/stlink
fix msvc build
rodzic
a66557a102
commit
0b7b1f3b03
|
@ -249,6 +249,7 @@ if (MSVC)
|
|||
# Add getopt to sources
|
||||
include_directories(src/win32/getopt)
|
||||
set(ST-UTIL_SOURCES "${ST-UTIL_SOURCES};src/win32/getopt/getopt.c")
|
||||
set(ST-TRACE_SOURCES "${ST-TRACE_SOURCES};src/win32/getopt/getopt.c")
|
||||
endif ()
|
||||
|
||||
add_executable(st-flash ${ST-FLASH_SOURCES})
|
||||
|
|
|
@ -552,7 +552,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
ILOG("Reading Trace\n");
|
||||
st_trace_t trace = {};
|
||||
st_trace_t trace = {0};
|
||||
trace.start_time = time(NULL);
|
||||
|
||||
if (stlink_run(stlink)) {
|
||||
|
|
Ładowanie…
Reference in New Issue