Commit 0148bc80 authored by Sergey Lyubka's avatar Sergey Lyubka

Added NO_THREADS wrapper

parent 472e198d
......@@ -390,6 +390,7 @@ static const struct {
{NULL, 0, NULL}
};
#ifndef NO_THREADS
void *mg_start_thread(void *(*f)(void *), void *p) {
#ifdef _WIN32
return (void *) _beginthread((void (__cdecl *)(void *)) f, 0, p);
......@@ -411,6 +412,7 @@ void *mg_start_thread(void *(*f)(void *), void *p) {
return (void *) thread_id;
#endif
}
#endif // NO_THREADS
#ifdef _WIN32
// Encode 'path' which is assumed UTF-8 string, into UNICODE string.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment