[mpp_thread]: fix compile error on windows and linux

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@774 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-05-19 06:35:22 +00:00
parent a3da4fd7ea
commit 50277780fc
3 changed files with 20 additions and 6 deletions

View File

@@ -34,6 +34,11 @@
#include "pthread.h"
#pragma comment(lib, "pthreadVC2.lib")
/*
* add pthread_setname_np for windows
*/
int pthread_setname_np(pthread_t thread, const char *name);
#else
#include <unistd.h>