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:
parent
4b2b3f2a08
commit
b077f24a50
1 changed files with 5 additions and 0 deletions
|
@ -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" */
|
||||
|
|
Loading…
Reference in a new issue