aboutsummaryrefslogtreecommitdiff
path: root/src/core/defs.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-10-06 22:33:45 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-06 22:33:45 -0700
commit2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8 (patch)
tree369de6c91edad34718ac98a2213b231bebb168ce /src/core/defs.h
parentd0dc211c7b77a927c1ea315342239b09e5d8c2fe (diff)
downloadnng-2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8.tar.gz
nng-2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8.tar.bz2
nng-2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8.zip
Actually enable UDP. Also fix some UWYI includes.
Diffstat (limited to 'src/core/defs.h')
-rw-r--r--src/core/defs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/defs.h b/src/core/defs.h
index d559b490..2d73f296 100644
--- a/src/core/defs.h
+++ b/src/core/defs.h
@@ -11,8 +11,10 @@
#ifndef CORE_DEFS_H
#define CORE_DEFS_H
-#include <stdint.h>
#include <stdbool.h>
+#include <stdint.h>
+
+#include <nng/nng.h>
// C compilers may get unhappy when named arguments are not used. While
// there are things like __attribute__((unused)) which are arguably
@@ -24,7 +26,7 @@
if (!(x)) \
nni_panic("%s: %d: assert err: %s", __FILE__, __LINE__, #x)
#else
-#define NNI_ASSERT(x) ((void)(0))
+#define NNI_ASSERT(x) ((void) (0))
#endif
// Returns the size of an array in elements. (Convenience.)