fix missing extern

This commit is contained in:
UnknownShadow200 2018-11-27 21:32:12 +11:00
parent 718aa1b3d1
commit 6b8d5db100
4 changed files with 8 additions and 3 deletions

View File

@ -1045,6 +1045,8 @@ bool LocalPlayer_HandlesKey(Key key) {
/*########################################################################################################################* /*########################################################################################################################*
*-------------------------------------------------------NetPlayer---------------------------------------------------------* *-------------------------------------------------------NetPlayer---------------------------------------------------------*
*#########################################################################################################################*/ *#########################################################################################################################*/
struct NetPlayer NetPlayers_List[ENTITIES_SELF_ID];
static void NetPlayer_SetLocation(struct Entity* e, struct LocationUpdate* update, bool interpolate) { static void NetPlayer_SetLocation(struct Entity* e, struct LocationUpdate* update, bool interpolate) {
struct NetPlayer* p = (struct NetPlayer*)e; struct NetPlayer* p = (struct NetPlayer*)e;
NetInterpComp_SetLocation(&p->Interp, update, interpolate); NetInterpComp_SetLocation(&p->Interp, update, interpolate);

View File

@ -142,7 +142,7 @@ struct NetPlayer {
bool ShouldRender; bool ShouldRender;
}; };
void NetPlayer_Init(struct NetPlayer* player, const String* displayName, const String* skinName); void NetPlayer_Init(struct NetPlayer* player, const String* displayName, const String* skinName);
struct NetPlayer NetPlayers_List[ENTITIES_SELF_ID]; extern struct NetPlayer NetPlayers_List[ENTITIES_SELF_ID];
/* Represents the user/player's own entity. */ /* Represents the user/player's own entity. */
struct LocalPlayer { struct LocalPlayer {

View File

@ -8,12 +8,15 @@
#include "AsyncDownloader.h" #include "AsyncDownloader.h"
#include "Bitmap.h" #include "Bitmap.h"
#define FT_EXPORT(x) extern x
#include "freetype/ft2build.h" #include "freetype/ft2build.h"
#include "freetype/freetype.h" #include "freetype/freetype.h"
#include "freetype/ftmodapi.h" #include "freetype/ftmodapi.h"
static void Platform_InitDisplay(void); static void Platform_InitDisplay(void);
static void Platform_InitStopwatch(void); static void Platform_InitStopwatch(void);
struct DisplayDevice DisplayDevice_Default;
void* DisplayDevice_Meta;
#ifdef CC_BUILD_WIN #ifdef CC_BUILD_WIN
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN

View File

@ -36,8 +36,8 @@ extern const ReturnCode ReturnCode_InvalidArg;
/* Data for a display device. (usually a monitor) */ /* Data for a display device. (usually a monitor) */
struct DisplayDevice { int BitsPerPixel; Rect2D Bounds; }; struct DisplayDevice { int BitsPerPixel; Rect2D Bounds; };
struct DisplayDevice DisplayDevice_Default; extern struct DisplayDevice DisplayDevice_Default;
void* DisplayDevice_Meta; extern void* DisplayDevice_Meta;
struct GraphicsMode { struct GraphicsMode {
int R,G,B,A, BitsPerPixel, IsIndexed; /* Colour buffer data */ int R,G,B,A, BitsPerPixel, IsIndexed; /* Colour buffer data */