Skip to content

Commit

Permalink
fix some extern I forgot, causing duplicate symbol error at runtime o…
Browse files Browse the repository at this point in the history
…n some systems
  • Loading branch information
UnknownShadow200 committed Feb 14, 2019
1 parent 979998f commit 56a4664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct PickedPos;
struct Camera;

/* Shared data for cameras. */
struct _CameraData {
extern struct _CameraData {
/* How sensitive camera is to movements of mouse. */
int Sensitivity;
/* Whether smooth/cinematic camera mode is used. */
Expand Down
2 changes: 1 addition & 1 deletion src/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ CC_VAR extern struct _WindowEventsList {
struct Event_Void StateChanged; /* WindowState of the window changed */
} WindowEvents;

CC_VAR struct _KeyEventsList {
CC_VAR extern struct _KeyEventsList {
struct Event_Int Press; /* Raised when a character is typed. Arg is a character */
struct Event_Input Down; /* Raised when a key is pressed. Arg is a member of Key enumeration */
struct Event_Int Up; /* Raised when a key is released. Arg is a member of Key enumeration */
Expand Down

0 comments on commit 56a4664

Please sign in to comment.