compile atomic

This commit is contained in:
dmchen 2024-01-25 07:30:54 +00:00
parent 0f90422a39
commit b10d7e7c1f
2 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,10 @@
#define DOUBLE_ATOMIC
#ifdef DOUBLE_ATOMIC
#include <stdatomic.h>
#endif
struct taos_metric_sample {
taos_metric_type_t type; /**< type is the metric type for the sample */
char *l_value; /**< l_value is the full metric name and label set represeted as a string */

View File

@ -25,8 +25,6 @@
#include "taos_metric_sample_i.h"
#include "taos_metric_sample_t.h"
#define DOUBLE_ATOMIC
#ifdef DOUBLE_ATOMIC
#include <stdatomic.h>
#else