File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,6 +265,10 @@ ifeq ($(LOAD_WITHOUT_CORE_INFO),1)
265265 CFLAGS += -DLOAD_WITHOUT_CORE_INFO
266266endif
267267
268+ ifneq ($(V),1)
269+ Q := @
270+ endif
271+
268272OBJOUT = -o
269273LINKOUT = -o
270274LINK = $(CXX)
@@ -278,7 +282,8 @@ $(EXT_INTER_TARGET): $(OBJ)
278282 $(LINK) $(LINKOUT)$@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(PLATEXTRA) $(LIBS)
279283
280284%.o: %.c
281- $(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
285+ @$(if $(Q), $(shell echo echo CC $<),)
286+ $(Q)$(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
282287
283288%.o: %.cpp
284289 $(CXX) $(CFLAGS) -c $(OBJOUT)$@ $<
Original file line number Diff line number Diff line change 33#include <ctype.h>
44#include <stdarg.h>
55
6- #if defined(_3DS ) && !defined(_POSIX_THREADS )
7- #include <../rthreads/ctr_pthread.h>
8- #endif
9-
106#ifdef RC_C89_HELPERS
117
128int rc_strncasecmp (const char * left , const char * right , size_t length )
@@ -124,22 +120,24 @@ void rc_mutex_unlock(rc_mutex_t* mutex)
124120
125121void rc_mutex_init (rc_mutex_t * mutex )
126122{
127- LWP_MutexInit (mutex , NULL );
123+ /* LWP_MutexInit has the handle passed by reference */
124+ /* Other LWP_Mutex* calls have the handle passed by value */
125+ LWP_MutexInit (& mutex -> handle , 1 );
128126}
129127
130128void rc_mutex_destroy (rc_mutex_t * mutex )
131129{
132- LWP_MutexDestroy (mutex );
130+ LWP_MutexDestroy (mutex -> handle );
133131}
134132
135133void rc_mutex_lock (rc_mutex_t * mutex )
136134{
137- LWP_MutexLock (mutex );
135+ LWP_MutexLock (mutex -> handle );
138136}
139137
140138void rc_mutex_unlock (rc_mutex_t * mutex )
141139{
142- LWP_MutexUnlock (mutex );
140+ LWP_MutexUnlock (mutex -> handle );
143141}
144142
145143#elif defined(_3DS )
Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ RC_BEGIN_C_DECLS
8181 typedef struct rc_mutex_t {
8282 void * handle ; /* HANDLE is defined as "void*" */
8383 } rc_mutex_t ;
84+ #elif defined(GEKKO )
85+ #include <ogcsys.h>
86+ typedef struct rc_mutex_t {
87+ mutex_t handle ;
88+ } rc_mutex_t ;
8489 #elif defined(_3DS )
8590 #include <3ds/synchronization.h>
8691 typedef RecursiveLock rc_mutex_t ;
Original file line number Diff line number Diff line change 7474 }
7575#endif
7676
77+ void VIDEO_SetTrapFilter (bool enable );
78+ void VIDEO_SetGamma (int gamma );
79+
7780enum
7881{
7982 GX_RESOLUTIONS_DEFAULT = 0 ,
Original file line number Diff line number Diff line change 1515 */
1616
1717#include <stdlib.h>
18+ #include <unistd.h>
19+ #include <malloc.h>
1820
1921#include <gccore.h>
2022#include <rthreads/rthreads.h>
You can’t perform that action at this time.
0 commit comments