include os.h

This commit is contained in:
xsren 2023-11-03 10:32:16 +08:00 committed by dm chen
parent 8318aa1418
commit 84545d4e8d
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -24,7 +24,7 @@
#include "taos_log.h" #include "taos_log.h"
#include "taos_metric_sample_i.h" #include "taos_metric_sample_i.h"
#include "taos_metric_sample_t.h" #include "taos_metric_sample_t.h"
#include "osAtomic.h" #include "os.h"
taos_metric_sample_t *taos_metric_sample_new(taos_metric_type_t type, const char *l_value, double r_value) { taos_metric_sample_t *taos_metric_sample_new(taos_metric_type_t type, const char *l_value, double r_value) {
taos_metric_sample_t *self = (taos_metric_sample_t *)taos_malloc(sizeof(taos_metric_sample_t)); taos_metric_sample_t *self = (taos_metric_sample_t *)taos_malloc(sizeof(taos_metric_sample_t));