HGGitLab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luoliangyi
app
Commits
e3c9d1f8
Commit
e3c9d1f8
authored
May 03, 2022
by
luoliangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在mips64上编译
parent
5f9864ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
third_party/mupdf/uos/mips64/32objto64obj/main.cpp
third_party/mupdf/uos/mips64/32objto64obj/main.cpp
+28
-7
third_party/mupdf/uos/mips64/lib/libmupdf.so
third_party/mupdf/uos/mips64/lib/libmupdf.so
+0
-0
No files found.
third_party/mupdf/uos/mips64/32objto64obj/main.cpp
View file @
e3c9d1f8
...
@@ -46,20 +46,41 @@ static void list_files(const char *dir_path)
...
@@ -46,20 +46,41 @@ static void list_files(const char *dir_path)
if
(
NULL
!=
strstr
(
newPath
,
".o"
))
if
(
NULL
!=
strstr
(
newPath
,
".o"
))
{
{
FILE
*
file
=
fopen
(
newPath
,
"wb"
);
unsigned
char
*
data
=
NULL
;
int
size
=
0
;
FILE
*
file
=
fopen
(
newPath
,
"rb"
);
if
(
NULL
!=
file
)
if
(
NULL
!=
file
)
{
{
printf
(
"handle %s
\n
"
,
newPath
);
fseek
(
file
,
0
,
SEEK_END
);
fseek
(
file
,
48
,
SEEK_SET
);
size
=
ftell
(
file
);
fseek
(
file
,
0
,
SEEK_SET
);
unsigned
char
data
[
4
]
=
{
0x07
,
0x00
,
0x00
,
0x80
};
if
(
size
>
0
)
fwrite
(
data
,
1
,
4
,
file
);
{
data
=
new
unsigned
char
[
size
];
fread
(
data
,
1
,
size
,
file
);
data
[
48
]
=
0x07
;
data
[
49
]
=
0x00
;
data
[
50
]
=
0x00
;
data
[
51
]
=
0x80
;
}
fclose
(
file
);
fclose
(
file
);
}
}
else
file
=
fopen
(
newPath
,
"wb"
);
if
(
NULL
!=
file
)
{
fseek
(
file
,
0
,
SEEK_SET
);
fwrite
(
data
,
1
,
size
,
file
);
fclose
(
file
);
}
if
(
NULL
!=
data
)
{
{
printf
(
"open file %s failed
\n
"
,
newPath
);
delete
[]
data
;
data
=
NULL
;
}
}
}
}
}
}
...
...
third_party/mupdf/uos/mips64/lib/libmupdf.so
View file @
e3c9d1f8
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment