Skip to content

Commit

Permalink
Protected visibility is available with the ELF object format
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxSciurorum committed Jan 24, 2025
1 parent 07518a4 commit 3b912c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/rts-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/* Functions defined in the library and visible outside the library. */
#ifndef CHEETAH_API
#if defined __BSD__ || defined __linux__ /* really, if using ELF */
#ifdef __ELF__
#define CHEETAH_API __attribute((visibility("protected")))
#else
#define CHEETAH_API
Expand Down

0 comments on commit 3b912c6

Please sign in to comment.