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.

This commit is contained in:
Monster Iestyn 2018-11-07 21:21:36 +00:00
parent f66979ba1a
commit 4a4e07e138
2 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ void D_PostEvent(const event_t *ev)
eventhead = (eventhead+1) & (MAXEVENTS-1); eventhead = (eventhead+1) & (MAXEVENTS-1);
} }
// just for lock this function // just for lock this function
#ifndef DOXYGEN #if defined (PC_DOS) && !defined (DOXYGEN)
void D_PostEvent_end(void) {}; void D_PostEvent_end(void) {};
#endif #endif

View file

@ -40,8 +40,8 @@ void D_SRB2Main(void);
// Called by IO functions when input is detected. // Called by IO functions when input is detected.
void D_PostEvent(const event_t *ev); void D_PostEvent(const event_t *ev);
#ifndef DOXYGEN #if defined (PC_DOS) && !defined (DOXYGEN)
FUNCMATH void D_PostEvent_end(void); // delimiter for locking memory void D_PostEvent_end(void); // delimiter for locking memory
#endif #endif
void D_ProcessEvents(void); void D_ProcessEvents(void);