compile atomic
This commit is contained in:
parent
0f90422a39
commit
b10d7e7c1f
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
#define DOUBLE_ATOMIC
|
#define DOUBLE_ATOMIC
|
||||||
|
|
||||||
|
#ifdef DOUBLE_ATOMIC
|
||||||
|
#include <stdatomic.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct taos_metric_sample {
|
struct taos_metric_sample {
|
||||||
taos_metric_type_t type; /**< type is the metric type for the 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 */
|
char *l_value; /**< l_value is the full metric name and label set represeted as a string */
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
#include "taos_metric_sample_i.h"
|
#include "taos_metric_sample_i.h"
|
||||||
#include "taos_metric_sample_t.h"
|
#include "taos_metric_sample_t.h"
|
||||||
|
|
||||||
#define DOUBLE_ATOMIC
|
|
||||||
|
|
||||||
#ifdef DOUBLE_ATOMIC
|
#ifdef DOUBLE_ATOMIC
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue