summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-09-10 22:02:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-09-10 22:02:21 (GMT)
commitb370370a9e35f9dd2357102b17338d3d93bb62aa (patch)
treeb8a8c5019a0705a75cf9cf8572c07219bc159076 /src/core
parent2424c52c4f3bc44ce5f36348442cfa103e0989c2 (diff)
Tune the compilation using flags instead of a config file.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c9
-rw-r--r--src/core/logs.c6
2 files changed, 6 insertions, 9 deletions
diff --git a/src/core/core.c b/src/core/core.c
index 626d58b..fe7a5e0 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -31,9 +31,6 @@
#include <openssl/ssl.h>
-#include <config.h>
-
-
#include "collections.h"
#include "demanglers.h"
#include "global.h"
@@ -41,7 +38,7 @@
#include "processors.h"
#include "queue.h"
#include "../analysis/scan/core.h"
-#ifdef HAVE_MAGIC_SUPPORT
+#ifdef INCLUDE_MAGIC_SUPPORT
# include "../analysis/scan/items/magic/cookie.h"
#endif
#include "../common/io.h"
@@ -108,7 +105,7 @@ bool load_all_core_components(bool cs)
resolver = g_content_resolver_new();
set_current_content_resolver(resolver);
-#ifdef HAVE_MAGIC_SUPPORT
+#ifdef INCLUDE_MAGIC_SUPPORT
if (result) result = init_magic_cookie();
#endif
@@ -161,7 +158,7 @@ void unload_all_core_components(bool cs)
unload_all_scan_token_modifiers();
set_rost_root_namespace(NULL);
-#ifdef HAVE_MAGIC_SUPPORT
+#ifdef INCLUDE_MAGIC_SUPPORT
exit_magic_cookie();
#endif
diff --git a/src/core/logs.c b/src/core/logs.c
index 9385020..2b2b1ab 100644
--- a/src/core/logs.c
+++ b/src/core/logs.c
@@ -29,7 +29,7 @@
#include "../common/extstr.h"
-#ifdef HAVE_GTK_SUPPORT
+#ifdef INCLUDE_GTK_SUPPORT
# include "../gui/core/items.h"
# include "../gui/panels/log.h"
#endif
@@ -109,13 +109,13 @@ void set_log_verbosity(LogMessageType level)
void log_simple_message(LogMessageType type, const char *msg)
{
-#ifdef HAVE_GTK_SUPPORT
+#ifdef INCLUDE_GTK_SUPPORT
GEditorItem *item; /* Eventuel affichage présent */
#endif
if (type >= _verbosity)
{
-#ifdef HAVE_GTK_SUPPORT
+#ifdef INCLUDE_GTK_SUPPORT
item = find_editor_item_by_type(G_TYPE_LOG_PANEL);