Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
bc76449f
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bc76449f
编写于
1月 31, 2013
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use setmode() instead of _setmode()
Looks like Cygwin / MSVC declare it that way, and it still works on MinGW32 cross.
上级
e9171af5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
6 deletion
+6
-6
config.h.in
config.h.in
+3
-3
configure.ac
configure.ac
+1
-1
util/options.cc
util/options.cc
+1
-1
util/options.hh
util/options.hh
+1
-1
未找到文件。
config.h.in
浏览文件 @
bc76449f
...
@@ -81,6 +81,9 @@
...
@@ -81,6 +81,9 @@
/* Have sched_yield */
/* Have sched_yield */
#undef HAVE_SCHED_YIELD
#undef HAVE_SCHED_YIELD
/* Define to 1 if you have the `setmode' function. */
#undef HAVE_SETMODE
/* Have Solaris __machine_*_barrier and atomic_* operations */
/* Have Solaris __machine_*_barrier and atomic_* operations */
#undef HAVE_SOLARIS_ATOMIC_OPS
#undef HAVE_SOLARIS_ATOMIC_OPS
...
@@ -117,9 +120,6 @@
...
@@ -117,9 +120,6 @@
/* Define to 1 if you have the <unistd.h> header file. */
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `_setmode' function. */
#undef HAVE__SETMODE
/* Define to the sub-directory in which libtool stores uninstalled libraries.
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
*/
#undef LT_OBJDIR
#undef LT_OBJDIR
...
...
configure.ac
浏览文件 @
bc76449f
...
@@ -55,7 +55,7 @@ dnl GOBJECT_INTROSPECTION_CHECK([0.9.0])
...
@@ -55,7 +55,7 @@ dnl GOBJECT_INTROSPECTION_CHECK([0.9.0])
dnl GTK_DOC_CHECK([1.15],[--flavour no-tmpl])
dnl GTK_DOC_CHECK([1.15],[--flavour no-tmpl])
# Functions and headers
# Functions and headers
AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap
_
setmode isatty)
AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap setmode isatty)
AC_CHECK_HEADERS(unistd.h sys/mman.h io.h)
AC_CHECK_HEADERS(unistd.h sys/mman.h io.h)
# Compiler flags
# Compiler flags
...
...
util/options.cc
浏览文件 @
bc76449f
...
@@ -414,7 +414,7 @@ font_options_t::get_font (void) const
...
@@ -414,7 +414,7 @@ font_options_t::get_font (void) const
GString
*
gs
=
g_string_new
(
NULL
);
GString
*
gs
=
g_string_new
(
NULL
);
char
buf
[
BUFSIZ
];
char
buf
[
BUFSIZ
];
#ifdef HAVE__SETMODE
#ifdef HAVE__SETMODE
_
setmode
(
fileno
(
stdin
),
_O_BINARY
);
setmode
(
fileno
(
stdin
),
_O_BINARY
);
#endif
#endif
while
(
!
feof
(
stdin
))
{
while
(
!
feof
(
stdin
))
{
size_t
ret
=
fread
(
buf
,
1
,
sizeof
(
buf
),
stdin
);
size_t
ret
=
fread
(
buf
,
1
,
sizeof
(
buf
),
stdin
);
...
...
util/options.hh
浏览文件 @
bc76449f
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#include <unistd.h>
/* for isatty() */
#include <unistd.h>
/* for isatty() */
#endif
#endif
#ifdef HAVE_IO_H
#ifdef HAVE_IO_H
#include <io.h>
/* for
_
setmode() under Windows */
#include <io.h>
/* for setmode() under Windows */
#endif
#endif
#include <hb.h>
#include <hb.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录