forked from cory/tildefriends
		
	Compile for android. Probably needs a bunch of work to run, but it's a step in a direction.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4087 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		| @@ -29,7 +29,9 @@ | ||||
| #include <backtrace.h> | ||||
|  | ||||
| #ifndef _WIN32 | ||||
| #ifndef __ANDROID__ | ||||
| #include <execinfo.h> | ||||
| #endif | ||||
| #include <unistd.h> | ||||
| #endif | ||||
|  | ||||
| @@ -1147,7 +1149,7 @@ JSValue tf_task_allocate_promise(tf_task_t* task, promiseid_t* out_promise) | ||||
| #ifdef _WIN32 | ||||
| 	count = CaptureStackBackTrace(0, sizeof(buffer) / sizeof(*buffer), buffer, NULL); | ||||
| 	stack_hash = fnv32a((const void*)buffer, sizeof(void*) * count, stack_hash); | ||||
| #else | ||||
| #elif !defined(__ANDROID__) | ||||
| 	count = backtrace(buffer, sizeof(buffer) / sizeof(*buffer)); | ||||
| 	stack_hash = fnv32a((const void*)buffer, sizeof(void*) * count, stack_hash); | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user