Skip to content

Commit 8706f5e

Browse files
authored
Merge pull request #19 from hhuOS/pr/c++-compat
doomgeneric.h: Make interface compatible with C++
2 parents b94eba3 + 70ce208 commit 8706f5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doomgeneric/doomgeneric.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ typedef uint32_t pixel_t;
2626

2727
extern pixel_t* DG_ScreenBuffer;
2828

29+
#ifdef __cplusplus
30+
extern "C" {
31+
#endif
32+
2933
void doomgeneric_Create(int argc, char **argv);
3034
void doomgeneric_Tick();
3135

@@ -38,4 +42,8 @@ uint32_t DG_GetTicksMs();
3842
int DG_GetKey(int* pressed, unsigned char* key);
3943
void DG_SetWindowTitle(const char * title);
4044

45+
#ifdef __cplusplus
46+
}
47+
#endif
48+
4149
#endif //DOOM_GENERIC

0 commit comments

Comments
 (0)