From 68ca46408e9c2767e4a43e238ba939452a66dfc6 Mon Sep 17 00:00:00 2001 From: Prem Prathi Date: Sat, 17 Feb 2024 06:35:13 +0000 Subject: [PATCH] chore: move header inclusions to c file --- cpp/negentropy_wrapper.c | 3 ++- cpp/negentropy_wrapper.h | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cpp/negentropy_wrapper.c b/cpp/negentropy_wrapper.c index d744fea..32e2b1f 100644 --- a/cpp/negentropy_wrapper.c +++ b/cpp/negentropy_wrapper.c @@ -1,4 +1,5 @@ - +#include "negentropy.h" +#include "negentropy/storage/BTreeMem.h" #include "negentropy_wrapper.h" //This is a C-wrapper for the C++ library that helps in integrating negentropy with nim code. diff --git a/cpp/negentropy_wrapper.h b/cpp/negentropy_wrapper.h index d145025..9ee90e6 100644 --- a/cpp/negentropy_wrapper.h +++ b/cpp/negentropy_wrapper.h @@ -2,10 +2,6 @@ #ifndef _NEGENTROPY_WRAPPER_H #define _NEGENTROPY_WRAPPER_H -#include "negentropy.h" -#include "negentropy/storage/BTreeMem.h" - -#define length(array) ((sizeof(array)) / (sizeof(array[0]))) //This is a C-wrapper for the C++ library that helps in integrating negentropy with nim code. //TODO: Do error handling by catching exceptions