mirror of
https://github.com/janet-lang/janet
synced 2025-10-25 12:47:42 +00:00
Use JANET_SINGLE_THREADED to disable threads.
This commit is contained in:
@@ -112,8 +112,10 @@ extern "C" {
|
||||
#define JANET_THREAD_LOCAL
|
||||
#elif defined(__GNUC__)
|
||||
#define JANET_THREAD_LOCAL __thread
|
||||
#define JANET_THREADS
|
||||
#elif defined(_MSC_BUILD)
|
||||
#define JANET_THREAD_LOCAL __declspec(thread)
|
||||
#define JANET_THREADS
|
||||
#else
|
||||
#define JANET_THREAD_LOCAL
|
||||
#endif
|
||||
@@ -143,11 +145,6 @@ extern "C" {
|
||||
#define JANET_INT_TYPES
|
||||
#endif
|
||||
|
||||
/* Enable or disable threads */
|
||||
#ifndef JANET_NO_THREADS
|
||||
#define JANET_THREADS
|
||||
#endif
|
||||
|
||||
/* How to export symbols */
|
||||
#ifndef JANET_API
|
||||
#ifdef JANET_WINDOWS
|
||||
|
||||
Reference in New Issue
Block a user