Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
bcc13058
Commit
bcc13058
authored
Apr 06, 2017
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix x86_64 build
parent
c72fca89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
message_storage.c
coreapi/message_storage.c
+2
-2
sqlite3_bctbx_vfs.c
coreapi/sqlite3_bctbx_vfs.c
+2
-2
No files found.
coreapi/message_storage.c
View file @
bcc13058
...
...
@@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#endif
#ifndef _WIN32
#if !defined(__QNXNTO__) && !
(defined(__ANDROID__) && defined(__LP64__)
)
#if !defined(__QNXNTO__) && !
defined(__ANDROID__
)
#include <ctype.h>
#include <langinfo.h>
#include <locale.h>
...
...
@@ -51,7 +51,7 @@ static char *utf8_convert(const char *filename){
wchar_t
db_file_utf16
[
MAX_PATH_SIZE
]
=
{
0
};
MultiByteToWideChar
(
CP_ACP
,
MB_PRECOMPOSED
,
filename
,
-
1
,
db_file_utf16
,
MAX_PATH_SIZE
);
WideCharToMultiByte
(
CP_UTF8
,
0
,
db_file_utf16
,
-
1
,
db_file_utf8
,
sizeof
(
db_file_utf8
),
NULL
,
NULL
);
#elif defined(__QNXNTO__) ||
(defined(__ANDROID__) && defined(__LP64__)
)
#elif defined(__QNXNTO__) ||
defined(__ANDROID__
)
strncpy
(
db_file_utf8
,
filename
,
MAX_PATH_SIZE
-
1
);
#else
char
db_file_locale
[
MAX_PATH_SIZE
]
=
{
'\0'
};
...
...
coreapi/sqlite3_bctbx_vfs.c
View file @
bcc13058
...
...
@@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef _WIN32
#if !defined(__QNXNTO__) && !
(defined(__ANDROID__) && defined(__LP64__)
)
#if !defined(__QNXNTO__) && !
defined(__ANDROID__
)
# include <langinfo.h>
# include <locale.h>
# include <iconv.h>
...
...
@@ -281,7 +281,7 @@ static char* ConvertFromUtf8Filename(const char* fName){
}
bctbx_free
(
wideFilename
);
return
convertedFilename
;
#elif defined(__QNXNTO__) ||
(defined(__ANDROID__) && defined(__LP64__)
)
#elif defined(__QNXNTO__) ||
defined(__ANDROID__
)
return
bctbx_strdup
(
fName
);
#else
#define MAX_PATH_SIZE 1024
...
...
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