-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that a C++ compiler is used to support later versions of ICU, we need to surround all C code with `extern "C"` to avoid name mangling that would cause issues with symbol resolution on macOS.
- Loading branch information
Showing
3 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
#include "common.h" | ||
|
||
extern "C" { | ||
|
||
extern void _init_charlock_encoding_detector(); | ||
extern void _init_charlock_converter(); | ||
extern void _init_charlock_transliterator(); | ||
|
||
VALUE rb_mCharlockHolmes; | ||
|
||
void Init_charlock_holmes() { | ||
__attribute__((visibility ("default"))) void Init_charlock_holmes() { | ||
rb_mCharlockHolmes = rb_define_module("CharlockHolmes"); | ||
|
||
_init_charlock_encoding_detector(); | ||
_init_charlock_converter(); | ||
_init_charlock_transliterator(); | ||
} | ||
} | ||
|
||
} |