Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
d9f6be3a
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看板
提交
d9f6be3a
编写于
1月 18, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix -Wundef errors with __GNUC__
Fixes
https://github.com/harfbuzz/harfbuzz/issues/1549
上级
28917e58
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
src/hb-common.h
src/hb-common.h
+2
-2
src/hb.hh
src/hb.hh
+5
-5
未找到文件。
src/hb-common.h
浏览文件 @
d9f6be3a
...
@@ -67,7 +67,7 @@ typedef unsigned __int64 uint64_t;
...
@@ -67,7 +67,7 @@ typedef unsigned __int64 uint64_t;
# include <stdint.h>
# include <stdint.h>
#endif
#endif
#if
__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1
)
#if
defined(__GNUC__) && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
)
#define HB_DEPRECATED __attribute__((__deprecated__))
#define HB_DEPRECATED __attribute__((__deprecated__))
#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
#define HB_DEPRECATED __declspec(deprecated)
#define HB_DEPRECATED __declspec(deprecated)
...
@@ -75,7 +75,7 @@ typedef unsigned __int64 uint64_t;
...
@@ -75,7 +75,7 @@ typedef unsigned __int64 uint64_t;
#define HB_DEPRECATED
#define HB_DEPRECATED
#endif
#endif
#if
__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5
)
#if
defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
)
#define HB_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
#define HB_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
#define HB_DEPRECATED_FOR(f) __declspec(deprecated("is deprecated. Use '" #f "' instead"))
#define HB_DEPRECATED_FOR(f) __declspec(deprecated("is deprecated. Use '" #f "' instead"))
...
...
src/hb.hh
浏览文件 @
d9f6be3a
...
@@ -208,7 +208,7 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
...
@@ -208,7 +208,7 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
HB_UNUSED typedef int HB_PASTE(static_assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]
HB_UNUSED typedef int HB_PASTE(static_assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]
#endif // static_assert
#endif // static_assert
#if
def __GNUC__
#if
defined(__GNUC__)
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))
#define thread_local __thread
#define thread_local __thread
#endif
#endif
...
@@ -258,7 +258,7 @@ struct _hb_alignof
...
@@ -258,7 +258,7 @@ struct _hb_alignof
#define __attribute__(x)
#define __attribute__(x)
#endif
#endif
#if
__GNUC__ >= 3
#if
defined(__GNUC__) && (__GNUC__ >= 3)
#define HB_PURE_FUNC __attribute__((pure))
#define HB_PURE_FUNC __attribute__((pure))
#define HB_CONST_FUNC __attribute__((const))
#define HB_CONST_FUNC __attribute__((const))
#define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_idx)))
#define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_idx)))
...
@@ -267,7 +267,7 @@ struct _hb_alignof
...
@@ -267,7 +267,7 @@ struct _hb_alignof
#define HB_CONST_FUNC
#define HB_CONST_FUNC
#define HB_PRINTF_FUNC(format_idx, arg_idx)
#define HB_PRINTF_FUNC(format_idx, arg_idx)
#endif
#endif
#if
__GNUC__ >= 4
#if
defined(__GNUC__) && (__GNUC__ >= 4)
#define HB_UNUSED __attribute__((unused))
#define HB_UNUSED __attribute__((unused))
#elif defined(_MSC_VER)
/* https://github.com/harfbuzz/harfbuzz/issues/635 */
#elif defined(_MSC_VER)
/* https://github.com/harfbuzz/harfbuzz/issues/635 */
#define HB_UNUSED __pragma(warning(suppress: 4100 4101))
#define HB_UNUSED __pragma(warning(suppress: 4100 4101))
...
@@ -290,7 +290,7 @@ struct _hb_alignof
...
@@ -290,7 +290,7 @@ struct _hb_alignof
# endif
# endif
#endif
#endif
#if
__GNUC__ >= 3
#if
defined(__GNUC__) && (__GNUC__ >= 3)
#define HB_FUNC __PRETTY_FUNCTION__
#define HB_FUNC __PRETTY_FUNCTION__
#elif defined(_MSC_VER)
#elif defined(_MSC_VER)
#define HB_FUNC __FUNCSIG__
#define HB_FUNC __FUNCSIG__
...
@@ -322,7 +322,7 @@ struct _hb_alignof
...
@@ -322,7 +322,7 @@ struct _hb_alignof
#if defined(__clang__) && __cplusplus >= 201103L
#if defined(__clang__) && __cplusplus >= 201103L
/* clang's fallthrough annotations are only available starting in C++11. */
/* clang's fallthrough annotations are only available starting in C++11. */
# define HB_FALLTHROUGH [[clang::fallthrough]]
# define HB_FALLTHROUGH [[clang::fallthrough]]
#elif
__GNUC__ >= 7
#elif
defined(__GNUC__) && (__GNUC__ >= 7)
/* GNU fallthrough attribute is available from GCC7 */
/* GNU fallthrough attribute is available from GCC7 */
# define HB_FALLTHROUGH __attribute__((fallthrough))
# define HB_FALLTHROUGH __attribute__((fallthrough))
#elif defined(_MSC_VER)
#elif defined(_MSC_VER)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录