Add internal configuration file, add missing includes, rename some options

This commit is contained in:
2024-06-12 12:09:59 +03:00
parent 5762484550
commit bfa33b3778
15 changed files with 47 additions and 17 deletions

7
include/bh/internal/bh.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef BH_INTERNAL_H
#define BH_INTERNAL_H
#include <bh/bh.h>
#include <bh/internal/config.h>
#endif /* BH_INTERNAL_H */

View File

@@ -1,6 +1,7 @@
#ifndef BH_INTERNAL_BUFFER_H
#define BH_INTERNAL_BUFFER_H
#include "bh.h"
#include <bh/buffer.h>
struct bh_buffer_s

View File

@@ -0,0 +1,6 @@
#ifndef BH_INTERNAL_CONFIG_H
#define BH_INTERNAL_CONFIG_H
#cmakedefine BH_THREADS_WINXP
#endif /* BH_INTERNAL_CONFIG_H */

View File

@@ -1,6 +1,7 @@
#ifndef BH_INTERNAL_FILE_H
#define BH_INTERNAL_FILE_H
#include "bh.h"
#include "io.h"
#include <bh/file.h>

View File

@@ -1,6 +1,7 @@
#ifndef BH_INTERNAL_HASHMAP_H
#define BH_INTERNAL_HASHMAP_H
#include "bh.h"
#include <bh/hashmap.h>
typedef struct bh_hashmap_node_s

View File

@@ -1,6 +1,7 @@
#ifndef BH_INTERNAL_IO_H
#define BH_INTERNAL_IO_H
#include "bh.h"
#include <bh/io.h>
void bh_io_init(bh_io_t *io,

View File

@@ -1,6 +1,7 @@
#ifndef BH_INTERNAL_QUEUE_H
#define BH_INTERNAL_QUEUE_H
#include "bh.h"
#include <bh/queue.h>
struct bh_queue_s

View File

@@ -1,6 +1,7 @@
#ifndef BH_INTERNAL_THREAD_H
#define BH_INTERNAL_THREAD_H
#include "bh.h"
#include <bh/thread.h>
#include "queue.h"
@@ -8,9 +9,9 @@
#define BH_MAX_TLS 32
#if defined(BH_USE_PTHREAD)
#if defined(BH_PLATFORM_POSIX) && defined(BH_PLATFORM_THREADS)
#include "thread_posix.h"
#elif defined(BH_USE_WINTHREAD)
#elif defined(BH_PLATFORM_WIN) && defined(BH_PLATFORM_THREADS)
#include "thread_win.h"
#else
#include "thread_null.h"