aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2024-02-16 15:17:18 +0100
committerKirill Primak <vyivel@eclair.cafe>2024-02-23 17:43:19 +0300
commitfc640d5f6c82883c35e90a64f0098486e6091293 (patch)
tree654d9fb88fb1885088a6638169bff592b8bd0bc0 /swaybar
parent07b059852673cd9e148c2adfc6bb4f8a0d0ff315 (diff)
Define _POSIX_C_SOURCE globally
See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/bar.c1
-rw-r--r--swaybar/config.c1
-rw-r--r--swaybar/i3bar.c1
-rw-r--r--swaybar/ipc.c1
-rw-r--r--swaybar/main.c1
-rw-r--r--swaybar/render.c1
-rw-r--r--swaybar/status_line.c1
-rw-r--r--swaybar/tray/host.c1
-rw-r--r--swaybar/tray/icon.c1
-rw-r--r--swaybar/tray/item.c1
-rw-r--r--swaybar/tray/watcher.c1
11 files changed, 0 insertions, 11 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 021fc3bd..5b1213a8 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/swaybar/config.c b/swaybar/config.c
index 5e828773..55bfcb72 100644
--- a/swaybar/config.c
+++ b/swaybar/config.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
#include <string.h>
#include "swaybar/config.h"
diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c
index ccd5a076..62c22d43 100644
--- a/swaybar/i3bar.c
+++ b/swaybar/i3bar.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <json.h>
#include <linux/input-event-codes.h>
#include <ctype.h>
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index 33ae6544..03500bdf 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809
#include <limits.h>
#include <poll.h>
#include <stdio.h>
diff --git a/swaybar/main.c b/swaybar/main.c
index a44c1e63..3dc67233 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/swaybar/render.c b/swaybar/render.c
index 1113ca44..879a4e42 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <linux/input-event-codes.h>
#include <limits.h>
diff --git a/swaybar/status_line.c b/swaybar/status_line.c
index 2e9bb7f1..e542e606 100644
--- a/swaybar/status_line.c
+++ b/swaybar/status_line.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <fcntl.h>
#include <sys/ioctl.h>
diff --git a/swaybar/tray/host.c b/swaybar/tray/host.c
index eea2caa5..79b54606 100644
--- a/swaybar/tray/host.c
+++ b/swaybar/tray/host.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/swaybar/tray/icon.c b/swaybar/tray/icon.c
index b513dca5..659edd86 100644
--- a/swaybar/tray/icon.c
+++ b/swaybar/tray/icon.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <ctype.h>
#include <dirent.h>
#include <stdbool.h>
diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c
index d5fe50b1..ca6c03ad 100644
--- a/swaybar/tray/item.c
+++ b/swaybar/tray/item.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <arpa/inet.h>
#include <cairo.h>
#include <limits.h>
diff --git a/swaybar/tray/watcher.c b/swaybar/tray/watcher.c
index 2458a8c2..3cfea8d8 100644
--- a/swaybar/tray/watcher.c
+++ b/swaybar/tray/watcher.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>