diff --git a/implement.h b/implement.h index 25ae4f1..af9bef1 100644 --- a/implement.h +++ b/implement.h @@ -463,6 +463,10 @@ extern "C" void pte_threadDestroy (pthread_t tid); void pte_threadExitAndDestroy (pthread_t tid); + pte_cleanup_t * pte_pop_cleanup (int execute); + void pte_push_cleanup (pte_cleanup_t * cleanup, + void (*routine) (void *), + void *arg); void pte_pop_cleanup_all (int execute); pthread_t pte_new (void); diff --git a/platform/vita/Makefile b/platform/vita/Makefile index dde4b9d..e3cfa82 100644 --- a/platform/vita/Makefile +++ b/platform/vita/Makefile @@ -165,7 +165,7 @@ CC = arm-vita-eabi-gcc CXX = arm-vita-eabi-g++ AR = arm-vita-eabi-ar -CFLAGS = $(GLOBAL_CFLAGS) -Wl,-q -Wall -O3 -ffat-lto-objects -flto -fno-strict-aliasing -I. -I../.. -I../helper +CFLAGS = $(GLOBAL_CFLAGS) -Wl,-q -Wall -O3 -DINCLUDE_NP -ffat-lto-objects -flto -fno-strict-aliasing -I. -I../.. -I../helper CXXFLAGS = $(CFLAGS) -fexceptions -fno-rtti -Werror -D__CLEANUP_CXX ASFLAGS = $(CFLAGS) diff --git a/pte_throw.c b/pte_throw.c index 81f616f..b5cf8af 100644 --- a/pte_throw.c +++ b/pte_throw.c @@ -77,7 +77,7 @@ pte_throw (unsigned int exception) * explicit thread exit here after cleaning up POSIX * residue (i.e. cleanup handlers, POSIX thread handle etc). */ - unsigned exitCode = 0; + /*unsigned exitCode = 0; switch (exception) { @@ -87,7 +87,7 @@ pte_throw (unsigned int exception) case PTE_EPS_EXIT: exitCode = (unsigned) sp->exitStatus;; break; - } + }*/ pte_thread_detach_and_exit_np ();