Skip to content

Commit

Permalink
Fix multiple definition errors
Browse files Browse the repository at this point in the history
Also add missing <string> header.
  • Loading branch information
binji committed Jul 24, 2020
1 parent 1ce3121 commit 20d2503
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/debugger/debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define BINJGB_DEBUGGER_H__

#include <array>
#include <string>

#include "imgui.h"
#include "imgui_memory_editor.h"
Expand Down
4 changes: 4 additions & 0 deletions src/host-gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

#include <assert.h>

#define V(name, type) type name;
FOREACH_GLEXT_PROC(V)
#undef V

#define CHECK_LOG(var, kind, status_enum, kind_str) \
do { \
GLint status; \
Expand Down
2 changes: 1 addition & 1 deletion src/host-gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern "C" {
V(glUseProgram, PFNGLUSEPROGRAMPROC) \
V(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC)

#define V(name, type) type name;
#define V(name, type) extern type name;
FOREACH_GLEXT_PROC(V)
#undef V

Expand Down

0 comments on commit 20d2503

Please sign in to comment.