summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorlistout <[email protected]>2023-05-05 11:07:20 +0530
committerLuke from DC <[email protected]>2023-05-07 06:48:33 +0000
commitfc56df38106f664def119611d302d20d0ea65e67 (patch)
treebb8d93022a073dc37106481dc5074dda3f88fe79 /plugins
parent6148063f860bf23d970199fd74a9efdf547be834 (diff)
downloadmate-sensors-applet-fc56df38106f664def119611d302d20d0ea65e67.tar.bz2
mate-sensors-applet-fc56df38106f664def119611d302d20d0ea65e67.tar.xz
unconditionally include stdio.h and locale.h
On musl mate-sensor-applet fails to build with error message saying "LC_NUMERIC undeclared". As suggested in issue mate-desktop#123, removing the include guards around #include <local.h> and #include <stdio.h> Signed-off-by: listout <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/acpi/acpi-plugin.c3
-rw-r--r--plugins/i2c-proc/i2c-proc-plugin.c6
-rw-r--r--plugins/i2c-sys/i2c-sys-plugin.c3
-rw-r--r--plugins/i8k/i8k-plugin.c3
-rw-r--r--plugins/ibm-acpi/ibm-acpi-plugin.c3
-rw-r--r--plugins/omnibook/omnibook-plugin.c3
-rw-r--r--plugins/pmu-sys/pmu-sys-plugin.c3
-rw-r--r--plugins/smu-sys/smu-sys-plugin.c3
8 files changed, 0 insertions, 27 deletions
diff --git a/plugins/acpi/acpi-plugin.c b/plugins/acpi/acpi-plugin.c
index add40a5..fc36113 100644
--- a/plugins/acpi/acpi-plugin.c
+++ b/plugins/acpi/acpi-plugin.c
@@ -21,10 +21,7 @@
#include <config.h>
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
#include <glib.h>
#include <glib/gi18n.h>
#include "acpi-plugin.h"
diff --git a/plugins/i2c-proc/i2c-proc-plugin.c b/plugins/i2c-proc/i2c-proc-plugin.c
index 1ed81fe..4a63a8a 100644
--- a/plugins/i2c-proc/i2c-proc-plugin.c
+++ b/plugins/i2c-proc/i2c-proc-plugin.c
@@ -21,14 +21,8 @@
#include <config.h>
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
-#ifdef HAVE_LOCALE_H
#include <locale.h>
-#endif
-
#include <glib.h>
#include <glib/gi18n.h>
#include "i2c-proc-plugin.h"
diff --git a/plugins/i2c-sys/i2c-sys-plugin.c b/plugins/i2c-sys/i2c-sys-plugin.c
index 72e2aee..411f98d 100644
--- a/plugins/i2c-sys/i2c-sys-plugin.c
+++ b/plugins/i2c-sys/i2c-sys-plugin.c
@@ -21,10 +21,7 @@
#include <config.h>
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
#include <glib.h>
#include <glib/gi18n.h>
#include "i2c-sys-plugin.h"
diff --git a/plugins/i8k/i8k-plugin.c b/plugins/i8k/i8k-plugin.c
index b675b1d..e213d04 100644
--- a/plugins/i8k/i8k-plugin.c
+++ b/plugins/i8k/i8k-plugin.c
@@ -21,10 +21,7 @@
#include <config.h>
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
#include <glib.h>
#include <glib/gi18n.h>
#include "i8k-plugin.h"
diff --git a/plugins/ibm-acpi/ibm-acpi-plugin.c b/plugins/ibm-acpi/ibm-acpi-plugin.c
index 285ff86..ae8f8ab 100644
--- a/plugins/ibm-acpi/ibm-acpi-plugin.c
+++ b/plugins/ibm-acpi/ibm-acpi-plugin.c
@@ -21,10 +21,7 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
#include <glib.h>
#include <glib/gi18n.h>
#include "ibm-acpi-plugin.h"
diff --git a/plugins/omnibook/omnibook-plugin.c b/plugins/omnibook/omnibook-plugin.c
index 5d6ff91..7728110 100644
--- a/plugins/omnibook/omnibook-plugin.c
+++ b/plugins/omnibook/omnibook-plugin.c
@@ -21,10 +21,7 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
#include <glib.h>
#include <glib/gi18n.h>
#include "omnibook-plugin.h"
diff --git a/plugins/pmu-sys/pmu-sys-plugin.c b/plugins/pmu-sys/pmu-sys-plugin.c
index 46f8f2b..6b50742 100644
--- a/plugins/pmu-sys/pmu-sys-plugin.c
+++ b/plugins/pmu-sys/pmu-sys-plugin.c
@@ -21,10 +21,7 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
#include <glib.h>
#include <glib/gi18n.h>
#include "pmu-sys-plugin.h"
diff --git a/plugins/smu-sys/smu-sys-plugin.c b/plugins/smu-sys/smu-sys-plugin.c
index d9e530d..f2c93ea 100644
--- a/plugins/smu-sys/smu-sys-plugin.c
+++ b/plugins/smu-sys/smu-sys-plugin.c
@@ -21,10 +21,7 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef HAVE_STDIO_H
#include <stdio.h>
-#endif /* HAVE_STDIO_H */
-
#include <glib.h>
#include <glib/gi18n.h>
#include "smu-sys-plugin.h"