s/MONGOOSE_NO_THREADS/MONGOOSE_ENABLE_THREADS

This commit is contained in:
Sergey Lyubka committed 2015-03-03 18:59:23 +00:00
1 parent 95055f6048
commit 4502dd0c86
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -149,7 +149,7 @@ all Net Skeleton functions will be available too.
-DMONGOOSE_NO_DIRECTORY_LISTING Disable directory listing -DMONGOOSE_NO_DIRECTORY_LISTING Disable directory listing
-DMONGOOSE_NO_FILESYSTEM Disables all file IO, serving from memory only -DMONGOOSE_NO_FILESYSTEM Disables all file IO, serving from memory only
-DMONGOOSE_NO_LOGGING Disable access/error logging -DMONGOOSE_NO_LOGGING Disable access/error logging
-DMONGOOSE_NO_THREADS -DMONGOOSE_ENABLE_THREADS Enable mg_start_thread() function
-DMONGOOSE_NO_WEBSOCKET Disable WebSocket support -DMONGOOSE_NO_WEBSOCKET Disable WebSocket support
-DMONGOOSE_NO_USER No concept of a user on used platform. -DMONGOOSE_NO_USER No concept of a user on used platform.
(Platform does not provide getpwnam, setgid or setuid) (Platform does not provide getpwnam, setgid or setuid)
+2 -2
View File
@@ -1561,11 +1561,11 @@ static const struct {
{NULL, 0, NULL} {NULL, 0, NULL}
}; };
#ifndef MONGOOSE_NO_THREADS #ifdef MONGOOSE_ENABLE_THREADS
void *mg_start_thread(void *(*f)(void *), void *p) { void *mg_start_thread(void *(*f)(void *), void *p) {
return ns_start_thread(f, p); return ns_start_thread(f, p);
} }
#endif // MONGOOSE_NO_THREADS #endif // MONGOOSE_ENABLE_THREADS
#ifndef MONGOOSE_NO_MMAP #ifndef MONGOOSE_NO_MMAP
#ifdef _WIN32 #ifdef _WIN32