1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 01:29:43 +01:00

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

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" */