Fix Lunatic C build. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4765 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-11-26 04:37:22 +00:00
parent 112d650843
commit d89caf5187
3 changed files with 19 additions and 3 deletions

View file

@ -170,7 +170,7 @@ extern int32_t inputchecked;
int32_t inittimer(int32_t);
void uninittimer(void);
void sampletimer(void);
#ifdef RENDERTYPESDL
#if defined RENDERTYPESDL && !defined LUNATIC
static inline uint32_t getticks(void) { return (uint32_t)SDL_GetTicks(); }
#else
uint32_t getticks(void);

View file

@ -901,6 +901,16 @@ void sampletimer(void)
for (; n > 0; n--) usertimercallback();
}
#if defined LUNATIC
//
// getticks() -- returns the sdl ticks count
//
uint32_t getticks(void)
{
return (uint32_t)SDL_GetTicks();
}
#endif
// high-resolution timers for profiling
#if SDL_MAJOR_VERSION!=1

View file

@ -10826,7 +10826,10 @@ static void med_handlecommon(int32_t xpos, int32_t ypos, int32_t *row, int32_t r
static void EditSectorData(int16_t sectnum)
{
int32_t col=1, row=0, rowmax = 6, i = -1;
int32_t col=1, row=0, rowmax = 6;
#ifdef YAX_ENABLE__COMPAT
int32_t i = -1;
#endif
int32_t xpos = 208, ypos = ydim-STATUS2DSIZ+48;
med_editval = 0;
@ -10982,7 +10985,10 @@ static void EditSectorData(int16_t sectnum)
static void EditWallData(int16_t wallnum)
{
int32_t row=0, i = -1;
int32_t row=0;
#if !defined NEW_MAP_FORMAT
int32_t i = -1;
#endif
int32_t xpos = 208, ypos = ydim-STATUS2DSIZ+48;
med_editval = 0;