Verified Commit 6fb24479 authored by Camil Staps's avatar Camil Staps
Browse files

Use obj instead of o as the default extension on 64-bit Windows

parent 87ea2d24
Pipeline #45917 passed with stage
in 48 seconds
......@@ -1097,14 +1097,24 @@ static void add_imported_object_file_to_project_node (char *object_file_name,P_N
add_object_file_extension=0;
if (object_file_name_size>0 && object_file_name[object_file_name_size-1]=='.'){
add_object_file_extension=1;
#if defined(_WINDOWS_) && defined(A_64)
object_file_name_size+=3;
#else
++object_file_name_size;
#endif
}
new_imported_object_file=memory_allocate (sizeof (struct object_file_list)+object_file_name_size+1);
strcpy (new_imported_object_file->object_file_name,object_file_name);
if (add_object_file_extension){
#if defined(_WINDOWS_) && defined(A_64)
new_imported_object_file->object_file_name[object_file_name_size-3]='o';
new_imported_object_file->object_file_name[object_file_name_size-2]='b';
new_imported_object_file->object_file_name[object_file_name_size-1]='j';
#else
new_imported_object_file->object_file_name[object_file_name_size-1]='o';
#endif
new_imported_object_file->object_file_name[object_file_name_size]='\0';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment