Skip to content

add missing typedefs and headers#3715

Merged
wenyongh merged 1 commit intobytecodealliance:mainfrom
sjamesr:add_llvm_defines
Aug 15, 2024
Merged

add missing typedefs and headers#3715
wenyongh merged 1 commit intobytecodealliance:mainfrom
sjamesr:add_llvm_defines

Conversation

@sjamesr
Copy link
Contributor

@sjamesr sjamesr commented Aug 14, 2024

No description provided.

#ifndef _BH_ATOMIC_H
#define _BH_ATOMIC_H

#include <stdint.h>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you include bh_platform.h instead? like other files of this folder.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thank you!


typedef uint64_t uint64;
typedef uint32_t uint32;
typedef uint16_t uint16;
Copy link
Collaborator

Choose a reason for hiding this comment

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

If including bh_platform.h, we don't need to add the three lines, since these types are already defined in the platform's header files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@wenyongh wenyongh merged commit b845e2e into bytecodealliance:main Aug 15, 2024
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.

2 participants