Skip to content

Fix a nested-externs warning in mono #104817

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

Merged
merged 4 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/mono/mono/eventpipe/ep-rt-mono.h
Original file line number Diff line number Diff line change
Expand Up @@ -1988,12 +1988,13 @@ struct _EventPipeMonoThreadData {
bool prevent_profiler_event_recursion;
};

extern gboolean _ep_rt_mono_runtime_initialized;

static
inline
bool
ep_rt_mono_is_runtime_initialized (void)
{
extern gboolean _ep_rt_mono_runtime_initialized;
return !!_ep_rt_mono_runtime_initialized;
}

Expand Down
3 changes: 2 additions & 1 deletion src/native/containers/dn-fwd-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,13 @@ dn_fwd_list_front (const dn_fwd_list_t *list)
#define dn_fwd_list_front_t(list, type) \
(type *)dn_fwd_list_front ((list))

extern dn_fwd_list_node_t _fwd_list_before_begin_it_node;

static inline dn_fwd_list_it_t
dn_fwd_list_before_begin (dn_fwd_list_t *list)
{
DN_ASSERT (list);

extern dn_fwd_list_node_t _fwd_list_before_begin_it_node;
dn_fwd_list_it_t it = { &_fwd_list_before_begin_it_node, { list } };

return it;
Expand Down
Loading