diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-11-23 07:09:52 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-11-23 07:09:52 -0800 |
| commit | 030fc34314d97874d3e4f209d78277d1f3981a0e (patch) | |
| tree | 10d1c32c2dde0ac874306ebdc16c95046c06dd3b /src/core/stats.h | |
| parent | d6bb25e1e0a25cb5aa781ac4f90b513fd5624f50 (diff) | |
| download | nng-030fc34314d97874d3e4f209d78277d1f3981a0e.tar.gz nng-030fc34314d97874d3e4f209d78277d1f3981a0e.tar.bz2 nng-030fc34314d97874d3e4f209d78277d1f3981a0e.zip | |
fixes #799 Compile error on Windows with disabled stats
Diffstat (limited to 'src/core/stats.h')
| -rw-r--r-- | src/core/stats.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/stats.h b/src/core/stats.h index 87bd90a7..215e07d8 100644 --- a/src/core/stats.h +++ b/src/core/stats.h @@ -49,6 +49,8 @@ struct nni_stat_item { const char * si_string; // string value (NULL for numerics) uint64_t si_number; // numeric value nni_atomic_u64 si_atomic; // atomic value +#else + char si_disabled; // place holder, cannot be empty in C #endif }; |
