Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapter to harmonyos for xlog #1224

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

qingkouwei
Copy link

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得add_definitions(-DOHOS)放到编译脚本中更好,不要每个CMakeLists.txt都加一遍

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好建议

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__BEGIN_EXTERN_C/__END_EXTERN_C应该是定义在sys/cdefs.h中的,如果目前鸿蒙没有提供相应的头文件的话,我认为应该在项目中新加一个sys/cdefs.h,而不是把__BEGIN_EXTERN_C定义到现有的项目文件中。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在鸿蒙还不稳定,稳定版本里面有sys/cdefs.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants