aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-09-18 14:50:35 +0200
committerToni <matzeton@googlemail.com>2022-09-21 18:03:22 +0200
commitd27fb1e73e729fdce33aad2ee1474c6b7614753b (patch)
treed6aa6e8509acc888d88428fac9e03dd73e8c5e9a /src
parent817a7c616dae9431c89bb20aeed87c37b7e0d5a7 (diff)
Moved `NDPI_API_VERSION` to `src/include/ndpi_define.h.in` where it belongs.
That way, we can make `src/include/ndpi_api.h` independent of autoconf. MSBuild will like that. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/include/ndpi_api.h (renamed from src/include/ndpi_api.h.in)5
-rw-r--r--src/include/ndpi_define.h.in6
-rw-r--r--src/lib/Makefile.in1
3 files changed, 6 insertions, 6 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h
index cf6c1e469..02fd54b79 100644
--- a/src/include/ndpi_api.h.in
+++ b/src/include/ndpi_api.h
@@ -31,11 +31,6 @@
extern "C" {
#endif
- /* The #define below is used for apps that dynamically link with nDPI to make
- sure that datastructures and in sync across versions
- */
-#define NDPI_API_VERSION @NDPI_API_VERSION@
-
#define SIZEOF_FLOW_STRUCT ( sizeof(struct ndpi_flow_struct) )
#define NDPI_DETECTION_ONLY_IPV4 ( 1 << 0 )
diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in
index b25430945..3b21e5dfb 100644
--- a/src/include/ndpi_define.h.in
+++ b/src/include/ndpi_define.h.in
@@ -24,6 +24,12 @@
#define __NDPI_DEFINE_INCLUDE_FILE__
/*
+ * The #define below is used for apps that dynamically link with nDPI to make
+ * sure that datastructures and in sync across versions
+ */
+#define NDPI_API_VERSION @NDPI_API_VERSION@
+
+/*
gcc -E -dM - < /dev/null |grep ENDIAN
*/
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
index 312679756..a79cbba29 100644
--- a/src/lib/Makefile.in
+++ b/src/lib/Makefile.in
@@ -74,7 +74,6 @@ clean:
distdir:
find . -type d | xargs -I'{}' mkdir -p '$(distdir)/{}'
find ../include -type f -name '*.h' \
- -a '!' -name 'ndpi_api.h' \
-a '!' -name 'ndpi_config.h' \
-a '!' -name 'ndpi_define.h' | xargs -I'{}' cp '{}' '$(distdir)/{}'
find . -type f -name '*.c' \