Skip to content

Conversation

@hangedfish
Copy link
Contributor

Fixed wasi_socket_ext library failed to link with cxx project.

Comment on lines 143 to 145
#ifdef __cplusplus
extern "C" {
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

A little strange that the macro only covers part of the code, prefer to wrap the whole file:

#ifndef _WASI_SOCKET_EXT_H_
#define _WASI_SOCKET_EXT_H_

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif
   => leave an empty line
...
   => leave an empty line
#ifdef __cplusplus
}
#endif
   => leave an empty line
#endif /* end of _WASI_SOCKET_EXT_H_ */

@hangedfish hangedfish requested a review from wenyongh October 12, 2022 01:56
Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

@wenyongh wenyongh merged commit f28a15b into bytecodealliance:main Oct 12, 2022
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Fix wasi_socket_ext library failed to link with cxx project
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.

3 participants