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---------------------------------------------------------*
*#########################################################################################################################*/
struct NetPlayer NetPlayers_List[ENTITIES_SELF_ID];
static void NetPlayer_SetLocation(struct Entity* e, struct LocationUpdate* update, bool interpolate) {
struct NetPlayer* p = (struct NetPlayer*)e;
NetInterpComp_SetLocation(&p->Interp, update, interpolate);

View File

@ -142,7 +142,7 @@ struct NetPlayer {
bool ShouldRender;
};
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. */
struct LocalPlayer {

View File

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

View File

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