Permalink
Browse files

fix missing extern

  • Loading branch information...
UnknownShadow200 committed Nov 27, 2018
1 parent 718aa1b commit 6b8d5db100ea8e75a3634f2c3390eccfc52955a5
Showing with 8 additions and 3 deletions.
  1. +2 −0 src/Entity.c
  2. +1 −1 src/Entity.h
  3. +3 −0 src/Platform.c
  4. +2 −2 src/Platform.h
@@ -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);
@@ -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 {
@@ -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
@@ -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 */

0 comments on commit 6b8d5db

Please sign in to comment.