CWrappers.cpp: Extern "C"

While working on adding a screenshots keybind, I encountered a link
error with these functions. Wrapping them in `extern "C"` fixed it. It's
most likely due to the fact that they were `extern "C"` in the header,
but not in the `.cpp` file. They should be both `extern "C"`'d
regardless.
This commit is contained in:
Misa 2024-01-09 11:11:15 -08:00
parent 4b2b3f2a08
commit b077f24a50
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,9 @@
#include "Localization.h"
#include "UtilityClass.h"
extern "C"
{
char* HELP_number_words(int _t, const char* number_class)
{
/* C wrapper for UtilityClass::number_words.
@ -23,3 +26,5 @@ uint32_t LOC_toupper_ch(uint32_t ch)
{
return loc::toupper_ch(ch);
}
} /* extern "C" */