fix: windows build, added visual studio project files

This commit is contained in:
2024-01-21 20:29:07 +01:00
parent 85c3c2cbc9
commit d0863e8e66
13 changed files with 486 additions and 3 deletions

View File

@@ -90,7 +90,11 @@ int pasm_run_script(const char *filename, char **file, size_t lines, int _fstrea
for (state->curr_line = 0; state->curr_line < (int)lines && get_exit_state() == 0 ; ++state->curr_line) {
if (pasm_debug_mode && found_main)
debug_input(file[state->curr_line]);
#ifdef _WIN32
char* line = _strdup(file[state->curr_line]);
#else
char *line = strdup(file[state->curr_line]);
#endif
if (line[0] == ';' || line[0] == '\0') {
free(line);
continue;