From 4a4e07e1385ddb1c707e431e6be928cc16a1c724 Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Wed, 7 Nov 2018 21:21:36 +0000
Subject: [PATCH] D_PostEvent_end is only used by Allegro (used by the DOS
 port) to help timers work, so check for PC_DOS in preprocessor code. Also
 remove FUNCMATH from said function.

---
 src/d_main.c | 2 +-
 src/d_main.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/d_main.c b/src/d_main.c
index 170532675..037aeccf9 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -170,7 +170,7 @@ void D_PostEvent(const event_t *ev)
 	eventhead = (eventhead+1) & (MAXEVENTS-1);
 }
 // just for lock this function
-#ifndef DOXYGEN
+#if defined (PC_DOS) && !defined (DOXYGEN)
 void D_PostEvent_end(void) {};
 #endif
 
diff --git a/src/d_main.h b/src/d_main.h
index d73b19d1f..4c9c99ea5 100644
--- a/src/d_main.h
+++ b/src/d_main.h
@@ -40,8 +40,8 @@ void D_SRB2Main(void);
 
 // Called by IO functions when input is detected.
 void D_PostEvent(const event_t *ev);
-#ifndef DOXYGEN
-FUNCMATH void D_PostEvent_end(void);    // delimiter for locking memory
+#if defined (PC_DOS) && !defined (DOXYGEN)
+void D_PostEvent_end(void);    // delimiter for locking memory
 #endif
 
 void D_ProcessEvents(void);
-- 
GitLab