]> git.0x19.co - doomgeneric-snom360/commitdiff
doomgeneric.h: Make interface compatible with C++
authorFabian Ruhland <ruhland@hhu.de>
Mon, 20 Jan 2025 10:00:21 +0000 (11:00 +0100)
committerFabian Ruhland <ruhland@hhu.de>
Wed, 11 Jun 2025 11:14:44 +0000 (13:14 +0200)
doomgeneric/doomgeneric.h

index 0fbbd2b76834a5093138cedb2ee0332132e424ee..fd8708f42010ff7226926450e3bed379429eb2a6 100644 (file)
@@ -26,6 +26,10 @@ typedef uint32_t pixel_t;
 
 extern pixel_t* DG_ScreenBuffer;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void doomgeneric_Create(int argc, char **argv);
 void doomgeneric_Tick();
 
@@ -38,4 +42,8 @@ uint32_t DG_GetTicksMs();
 int DG_GetKey(int* pressed, unsigned char* key);
 void DG_SetWindowTitle(const char * title);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif //DOOM_GENERIC