Fix Emscripten/static build.

This commit is contained in:
Jean-François DEL NERO committed 2025-01-01 21:52:33 +01:00
1 parent 82742f213b
commit 4ac075335e
2 files changed
+10 -6

No files matched your search

+4
View File
@@ -256,7 +256,11 @@ int32_t createlistenerthread(RDTHREADFUNCTION thread,int32_t priority,ftdi_conte
//pthread_attr_setprio(&threadattrib,4);
pthread_attr_setschedpolicy(&threadattrib,SCHED_FIFO);
#ifndef __EMSCRIPTEN__
param.sched_priority = sched_get_priority_max(SCHED_FIFO) ;
#endif
/* set the new scheduling param */
pthread_attr_setschedparam (&threadattrib, &param);
+6 -6
View File
@@ -60,15 +60,15 @@
//#define DEBUGVB 1
trackzone trackzonebuffer_0[2048*2];
trackzone trackzonebuffer_1[2048*2];
static trackzone trackzonebuffer_0[2048*2];
static trackzone trackzonebuffer_1[2048*2];
trackzone trackzonebuffer_temp[2048*2];
static trackzone trackzonebuffer_temp[2048*2];
trackpart trackpartbuffer_0[4096*2];
trackpart trackpartbuffer_1[4096*2];
static trackpart trackpartbuffer_0[4096*2];
static trackpart trackpartbuffer_1[4096*2];
void adjustrand(unsigned char * d, unsigned char * r)
static void adjustrand(unsigned char * d, unsigned char * r)
{
if ( (*d & 0xC0) == 0xC0)
{