Forward declare C functions for GCC's sake

This commit is contained in:
Ted John 2016-10-12 12:50:17 +01:00
parent 9b552ea6e2
commit 62de531b4a
2 changed files with 8 additions and 3 deletions

View File

@ -23,8 +23,6 @@ namespace Cursors
constexpr sint32 CURSOR_WIDTH = 32;
constexpr sint32 CURSOR_HEIGHT = 32;
static const CursorData * RawCursorData[CURSOR_COUNT];
static SDL_Cursor * _loadedCursors[CURSOR_COUNT];
static bool _initialised = false;
static CURSOR_ID _currentCursor = CURSOR_UNDEFINED;

View File

@ -74,11 +74,18 @@ namespace Cursors
void SetCurrentCursor(CURSOR_ID cursorId);
}
#else
#endif
#ifdef __cplusplus
extern "C"
{
#endif
void cursors_initialise();
void cursors_dispose();
int cursors_getcurrentcursor();
void cursors_setcurrentcursor(int cursorId);
#ifdef __cplusplus
}
#endif