From 13cbafbbecbf60365c10c5b5a1abe46a263d486c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Fri, 17 May 2024 18:51:36 +0200 Subject: [PATCH] Removed hJob from Linux --- src/core/main.c | 2 ++ src/core/main.h | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index 5d37256..a22af4d 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1,6 +1,8 @@ #include "main.h" +#ifdef __WIN32 HANDLE hJob = NULL; +#endif GtkApplication *app = NULL; GtkBuilder *builder = NULL; diff --git a/src/core/main.h b/src/core/main.h index 0dddd90..bc9e021 100644 --- a/src/core/main.h +++ b/src/core/main.h @@ -7,9 +7,11 @@ #include "../common.h" +#ifdef __WIN32 extern HANDLE hJob; +#endif -extern GtkApplication *app; +extern GtkApplication* app; #define CONTROL_MAIN_WND 0 #define CONTROL_MON_LIST 1 @@ -32,10 +34,9 @@ extern GtkApplication *app; #define CONTROLS_MAX 18 -typedef struct -{ - const char *name; - GtkWidget *widget; +typedef struct { + const char* name; + GtkWidget* widget; } Control; extern Control controls[];