Forward declare C functions for GCC's sake

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

No files matched your search

-2
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;
+8 -1
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