atomic windows

This commit is contained in:
tangfangzhi 2023-11-06 11:26:42 +08:00
parent d0b6fc2ba6
commit 68e2e4df74
2 changed files with 4 additions and 2 deletions

View File

@ -20,8 +20,6 @@
extern "C" {
#endif
#include "tdef.h"
// If the error is in a third-party library, place this header file under the third-party library header file.
// When you want to use this feature, you should find or add the same function in the following section.
#ifndef ALLOW_FORBID_FUNC

View File

@ -24,6 +24,10 @@
#include "taos_log.h"
#include "taos_metric_sample_i.h"
#include "taos_metric_sample_t.h"
#define ALLOW_FORBID_FUNC
#include "tdef.h"
#include "osAtomic.h"
taos_metric_sample_t *taos_metric_sample_new(taos_metric_type_t type, const char *l_value, double r_value) {