Fix some mingw compile-time issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6107 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8212ead238
commit
803d3801c9
4 changed files with 10 additions and 8 deletions
|
@ -364,12 +364,6 @@ extern cvar_t worker_flush;
|
||||||
qboolean COM_DoWork(int thread, qboolean leavelocked);
|
qboolean COM_DoWork(int thread, qboolean leavelocked);
|
||||||
#define COM_MainThreadWork() while (COM_DoWork(0, false) && worker_flush.ival) /*called each frame to do any gl uploads or whatever*/
|
#define COM_MainThreadWork() while (COM_DoWork(0, false) && worker_flush.ival) /*called each frame to do any gl uploads or whatever*/
|
||||||
#define COM_MainThreadFlush() while (COM_DoWork(0, false)) /*make sure the main thread has done ALL work pending*/
|
#define COM_MainThreadFlush() while (COM_DoWork(0, false)) /*make sure the main thread has done ALL work pending*/
|
||||||
typedef enum wgroup_e
|
|
||||||
{
|
|
||||||
WG_MAIN = 0,
|
|
||||||
WG_LOADER = 1,
|
|
||||||
WG_COUNT = 2 //main and loaders
|
|
||||||
} wgroup_t;
|
|
||||||
void COM_AddWork(wgroup_t thread, void(*func)(void *ctx, void *data, size_t a, size_t b), void *ctx, void *data, size_t a, size_t b); //low priority
|
void COM_AddWork(wgroup_t thread, void(*func)(void *ctx, void *data, size_t a, size_t b), void *ctx, void *data, size_t a, size_t b); //low priority
|
||||||
void COM_InsertWork(wgroup_t tg, void(*func)(void *ctx, void *data, size_t a, size_t b), void *ctx, void *data, size_t a, size_t b); //high priority
|
void COM_InsertWork(wgroup_t tg, void(*func)(void *ctx, void *data, size_t a, size_t b), void *ctx, void *data, size_t a, size_t b); //high priority
|
||||||
qboolean COM_HasWork(void);
|
qboolean COM_HasWork(void);
|
||||||
|
|
|
@ -1780,6 +1780,7 @@ static qboolean QDECL OpenAL_InitCard2(soundcardinfo_t *sc, const char *devname,
|
||||||
|
|
||||||
sc->inactive_sound = true;
|
sc->inactive_sound = true;
|
||||||
sc->Shutdown = OpenAL_Shutdown;
|
sc->Shutdown = OpenAL_Shutdown;
|
||||||
|
#ifdef HAVE_MIXER
|
||||||
if (qmix)
|
if (qmix)
|
||||||
{
|
{
|
||||||
sc->Lock = OAQM_LockBuffer;
|
sc->Lock = OAQM_LockBuffer;
|
||||||
|
@ -1819,6 +1820,7 @@ static qboolean QDECL OpenAL_InitCard2(soundcardinfo_t *sc, const char *devname,
|
||||||
//palSourcePlay(oali->qmix.handle);
|
//palSourcePlay(oali->qmix.handle);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef USEEFX
|
#ifdef USEEFX
|
||||||
sc->SetEnvironmentReverb = OpenAL_SetReverb;
|
sc->SetEnvironmentReverb = OpenAL_SetReverb;
|
||||||
|
|
|
@ -7150,6 +7150,7 @@ static void CM_SetAreaPortalState (model_t *mod, unsigned int portalnum, unsigne
|
||||||
prv->q2portalopen[portalnum] = open;
|
prv->q2portalopen[portalnum] = open;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
FloodAreaConnections (prv);
|
FloodAreaConnections (prv);
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,7 +149,12 @@ qboolean Sys_ConditionSignal(void *condv); //lock first
|
||||||
qboolean Sys_ConditionBroadcast(void *condv); //lock first
|
qboolean Sys_ConditionBroadcast(void *condv); //lock first
|
||||||
void Sys_DestroyConditional(void *condv);
|
void Sys_DestroyConditional(void *condv);
|
||||||
|
|
||||||
enum wgroup_e;
|
typedef enum wgroup_e
|
||||||
|
{
|
||||||
|
WG_MAIN = 0,
|
||||||
|
WG_LOADER = 1,
|
||||||
|
WG_COUNT = 2 //main and loaders
|
||||||
|
} wgroup_t;
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void *(QDECL *CreateMutex)(void);
|
void *(QDECL *CreateMutex)(void);
|
||||||
|
@ -157,7 +162,7 @@ typedef struct
|
||||||
qboolean (QDECL *UnlockMutex)(void *mutex);
|
qboolean (QDECL *UnlockMutex)(void *mutex);
|
||||||
void (QDECL *DestroyMutex)(void *mutex);
|
void (QDECL *DestroyMutex)(void *mutex);
|
||||||
|
|
||||||
void (*AddWork)(enum wgroup_e thread, void(*func)(void *ctx, void *data, size_t a, size_t b), void *ctx, void *data, size_t a, size_t b); //low priority
|
void (*AddWork)(wgroup_t thread, void(*func)(void *ctx, void *data, size_t a, size_t b), void *ctx, void *data, size_t a, size_t b); //low priority
|
||||||
void (*WaitForCompletion)(void *priorityctx, int *address, int sleepwhilevalue);
|
void (*WaitForCompletion)(void *priorityctx, int *address, int sleepwhilevalue);
|
||||||
#define plugthreadfuncs_name "Threading"
|
#define plugthreadfuncs_name "Threading"
|
||||||
} plugthreadfuncs_t;
|
} plugthreadfuncs_t;
|
||||||
|
|
Loading…
Reference in a new issue