Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dfd63484
Commit
dfd63484
authored
Sep 19, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Import uchar.h from MinGW.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f8f98e6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
0 deletions
+73
-0
Makefile.in
include/Makefile.in
+1
-0
uchar.h
include/msvcrt/uchar.h
+72
-0
No files found.
include/Makefile.in
View file @
dfd63484
...
...
@@ -454,6 +454,7 @@ SOURCES = \
msvcrt/sys/unistd.h
\
msvcrt/sys/utime.h
\
msvcrt/time.h
\
msvcrt/uchar.h
\
msvcrt/unistd.h
\
msvcrt/wchar.h
\
msvcrt/wctype.h
\
...
...
include/msvcrt/uchar.h
0 → 100644
View file @
dfd63484
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
/* ISO C1x Unicode utilities
* Based on ISO/IEC SC22/WG14 9899 TR 19769 (SC22 N1326)
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it freely.
*
* This code is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
* DISCLAIMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* Date: 2011-09-27
*/
#ifndef __UCHAR_H
#define __UCHAR_H
#include <stddef.h>
/* size_t */
#include <stdint.h>
/* uint_leastXX_t */
#include <wchar.h>
/* mbstate_t */
/* Remember that g++ >= 4.4 defines these types only in c++0x mode */
#if !(defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || \
!defined(__GNUC__) || \
(!defined(__clang__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)))
typedef
uint_least16_t
char16_t
;
typedef
uint_least32_t
char32_t
;
#endif
#ifndef __STDC_UTF_16__
#define __STDC_UTF_16__ 1
#endif
#ifndef __STDC_UTF_32__
#define __STDC_UTF_32__ 1
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
size_t
mbrtoc16
(
char16_t
*
__restrict__
pc16
,
const
char
*
__restrict__
s
,
size_t
n
,
mbstate_t
*
__restrict__
ps
);
size_t
c16rtomb
(
char
*
__restrict__
s
,
char16_t
c16
,
mbstate_t
*
__restrict__
ps
);
size_t
mbrtoc32
(
char32_t
*
__restrict__
pc32
,
const
char
*
__restrict__
s
,
size_t
n
,
mbstate_t
*
__restrict__
ps
);
size_t
c32rtomb
(
char
*
__restrict__
s
,
char32_t
c32
,
mbstate_t
*
__restrict__
ps
);
#ifdef __cplusplus
}
#endif
#endif
/* __UCHAR_H */
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