sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit fc640d5f6c82883c35e90a64f0098486e6091293
parent 07b059852673cd9e148c2adfc6bb4f8a0d0ff315
Author: Simon Ser <contact@emersion.fr>
Date:   Fri, 16 Feb 2024 15:17:18 +0100

Define _POSIX_C_SOURCE globally

See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555

Diffstat:
Mclient/pool-buffer.c | 1-
Mcommon/gesture.c | 1-
Mcommon/ipc-client.c | 1-
Mcommon/log.c | 1-
Mcommon/loop.c | 1-
Mcommon/stringop.c | 1-
Mcommon/util.c | 1-
Mmeson.build | 1+
Msway/commands.c | 1-
Msway/commands/assign.c | 1-
Msway/commands/bar.c | 1-
Msway/commands/bar/font.c | 1-
Msway/commands/bar/hidden_state.c | 1-
Msway/commands/bar/icon_theme.c | 1-
Msway/commands/bar/id.c | 1-
Msway/commands/bar/mode.c | 1-
Msway/commands/bar/output.c | 1-
Msway/commands/bar/position.c | 1-
Msway/commands/bar/separator_symbol.c | 1-
Msway/commands/bar/tray_output.c | 1-
Msway/commands/bind.c | 1-
Msway/commands/exec_always.c | 1-
Msway/commands/font.c | 1-
Msway/commands/gesture.c | 1-
Msway/commands/input/calibration_matrix.c | 1-
Msway/commands/input/map_from_region.c | 1-
Msway/commands/input/map_to_output.c | 1-
Msway/commands/input/map_to_region.c | 1-
Msway/commands/input/xkb_file.c | 1-
Msway/commands/input/xkb_layout.c | 1-
Msway/commands/input/xkb_model.c | 1-
Msway/commands/input/xkb_numlock.c | 1-
Msway/commands/input/xkb_options.c | 1-
Msway/commands/input/xkb_rules.c | 1-
Msway/commands/input/xkb_switch_layout.c | 1-
Msway/commands/input/xkb_variant.c | 1-
Msway/commands/mark.c | 1-
Msway/commands/mode.c | 1-
Msway/commands/move.c | 1-
Msway/commands/output/background.c | 1-
Msway/commands/reload.c | 1-
Msway/commands/seat/attach.c | 1-
Msway/commands/seat/cursor.c | 1-
Msway/commands/seat/hide_cursor.c | 1-
Msway/commands/seat/idle.c | 1-
Msway/commands/seat/xcursor_theme.c | 1-
Msway/commands/set.c | 1-
Msway/commands/show_marks.c | 1-
Msway/commands/swap.c | 1-
Msway/commands/title_format.c | 1-
Msway/commands/unmark.c | 1-
Msway/commands/workspace.c | 1-
Msway/config.c | 1+
Msway/config/bar.c | 1-
Msway/config/input.c | 1-
Msway/config/output.c | 1-
Msway/config/seat.c | 1-
Msway/criteria.c | 1-
Msway/desktop/launcher.c | 1-
Msway/desktop/output.c | 1-
Msway/desktop/transaction.c | 1-
Msway/desktop/xdg_shell.c | 1-
Msway/desktop/xwayland.c | 1-
Msway/input/cursor.c | 1-
Msway/input/input-manager.c | 1-
Msway/input/seat.c | 1-
Msway/input/seatop_default.c | 1-
Msway/input/seatop_down.c | 1-
Msway/input/seatop_move_floating.c | 1-
Msway/input/seatop_move_tiling.c | 1-
Msway/input/seatop_resize_floating.c | 1-
Msway/input/seatop_resize_tiling.c | 1-
Msway/input/tablet.c | 1-
Msway/ipc-server.c | 1-
Msway/lock.c | 1-
Msway/main.c | 1-
Msway/server.c | 1-
Msway/sway_text_node.c | 1-
Msway/swaynag.c | 1-
Msway/tree/arrange.c | 1-
Msway/tree/container.c | 1-
Msway/tree/node.c | 1-
Msway/tree/output.c | 1-
Msway/tree/root.c | 1-
Msway/tree/view.c | 1-
Msway/tree/workspace.c | 1-
Mswaybar/bar.c | 1-
Mswaybar/config.c | 1-
Mswaybar/i3bar.c | 1-
Mswaybar/ipc.c | 1-
Mswaybar/main.c | 1-
Mswaybar/render.c | 1-
Mswaybar/status_line.c | 1-
Mswaybar/tray/host.c | 1-
Mswaybar/tray/icon.c | 1-
Mswaybar/tray/item.c | 1-
Mswaybar/tray/watcher.c | 1-
Mswaymsg/main.c | 1-
Mswaynag/config.c | 1-
Mswaynag/main.c | 1-
Mswaynag/swaynag.c | 1-
Mswaynag/types.c | 1-
102 files changed, 2 insertions(+), 100 deletions(-)

diff --git a/client/pool-buffer.c b/client/pool-buffer.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809 #include <assert.h> #include <cairo.h> #include <errno.h> diff --git a/common/gesture.c b/common/gesture.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "gesture.h" #include <math.h> diff --git a/common/ipc-client.c b/common/ipc-client.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <stdint.h> #include <stdlib.h> diff --git a/common/log.c b/common/log.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200112L #include <signal.h> #include <stdarg.h> #include <stdio.h> diff --git a/common/loop.c b/common/loop.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200112L #include <limits.h> #include <string.h> #include <stdbool.h> diff --git a/common/stringop.c b/common/stringop.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <ctype.h> #include <stdarg.h> #include <stdbool.h> diff --git a/common/util.c b/common/util.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <ctype.h> #include <fcntl.h> #include <math.h> diff --git a/meson.build b/meson.build @@ -14,6 +14,7 @@ project( add_project_arguments( [ '-DWLR_USE_UNSTABLE', + '-D_POSIX_C_SOURCE=200809L', '-Wno-unused-parameter', '-Wno-unused-result', diff --git a/sway/commands.c b/sway/commands.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809 #include <ctype.h> #include <stdarg.h> #include <stdlib.h> diff --git a/sway/commands/assign.c b/sway/commands/assign.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <string.h> #include "sway/commands.h" diff --git a/sway/commands/bar.c b/sway/commands/bar.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809 #include <stdio.h> #include <string.h> #include <strings.h> diff --git a/sway/commands/bar/font.c b/sway/commands/bar/font.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/bar/hidden_state.c b/sway/commands/bar/hidden_state.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include <strings.h> #include "sway/commands.h" diff --git a/sway/commands/bar/icon_theme.c b/sway/commands/bar/icon_theme.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "config.h" #include "sway/commands.h" diff --git a/sway/commands/bar/id.c b/sway/commands/bar/id.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/bar/mode.c b/sway/commands/bar/mode.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include <strings.h> #include "sway/commands.h" diff --git a/sway/commands/bar/output.c b/sway/commands/bar/output.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdbool.h> #include <string.h> #include "sway/commands.h" diff --git a/sway/commands/bar/position.c b/sway/commands/bar/position.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include <strings.h> #include "sway/commands.h" diff --git a/sway/commands/bar/separator_symbol.c b/sway/commands/bar/separator_symbol.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/bar/tray_output.c b/sway/commands/bar/tray_output.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "config.h" #include "sway/commands.h" diff --git a/sway/commands/bind.c b/sway/commands/bind.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <libevdev/libevdev.h> #include <linux/input-event-codes.h> #include <string.h> diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <stdint.h> #include <string.h> diff --git a/sway/commands/font.c b/sway/commands/font.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/gesture.c b/sway/commands/gesture.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "gesture.h" diff --git a/sway/commands/input/calibration_matrix.c b/sway/commands/input/calibration_matrix.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include <strings.h> #include "sway/config.h" diff --git a/sway/commands/input/map_from_region.c b/sway/commands/input/map_from_region.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdbool.h> #include <string.h> #include <strings.h> diff --git a/sway/commands/input/map_to_output.c b/sway/commands/input/map_to_output.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include <strings.h> #include "sway/config.h" diff --git a/sway/commands/input/map_to_region.c b/sway/commands/input/map_to_region.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <string.h> #include "sway/commands.h" diff --git a/sway/commands/input/xkb_file.c b/sway/commands/input/xkb_file.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <unistd.h> #include <errno.h> #include "sway/config.h" diff --git a/sway/commands/input/xkb_layout.c b/sway/commands/input/xkb_layout.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/input/xkb_model.c b/sway/commands/input/xkb_model.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/input/xkb_numlock.c b/sway/commands/input/xkb_numlock.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "sway/commands.h" #include "util.h" diff --git a/sway/commands/input/xkb_options.c b/sway/commands/input/xkb_options.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/input/xkb_rules.c b/sway/commands/input/xkb_rules.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/input/xkb_switch_layout.c b/sway/commands/input/xkb_switch_layout.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <wlr/interfaces/wlr_keyboard.h> #include "sway/config.h" diff --git a/sway/commands/input/xkb_variant.c b/sway/commands/input/xkb_variant.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "sway/commands.h" #include "log.h" diff --git a/sway/commands/mark.c b/sway/commands/mark.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/mode.c b/sway/commands/mode.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdbool.h> #include <string.h> #include "sway/commands.h" diff --git a/sway/commands/move.c b/sway/commands/move.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <ctype.h> #include <math.h> #include <stdbool.h> diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <libgen.h> #include <stdio.h> #include <string.h> diff --git a/sway/commands/reload.c b/sway/commands/reload.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/seat/attach.c b/sway/commands/seat/attach.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/seat/cursor.c b/sway/commands/seat/cursor.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <linux/input-event-codes.h> #include <strings.h> diff --git a/sway/commands/seat/hide_cursor.c b/sway/commands/seat/hide_cursor.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/seat/idle.c b/sway/commands/seat/idle.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <limits.h> #include <string.h> #include <strings.h> diff --git a/sway/commands/seat/xcursor_theme.c b/sway/commands/seat/xcursor_theme.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/set.c b/sway/commands/set.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <string.h> #include <strings.h> diff --git a/sway/commands/show_marks.c b/sway/commands/show_marks.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/swap.c b/sway/commands/swap.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <strings.h> #include "config.h" #include "log.h" diff --git a/sway/commands/title_format.c b/sway/commands/title_format.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/unmark.c b/sway/commands/unmark.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <string.h> #include "sway/commands.h" #include "sway/config.h" diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <ctype.h> #include <limits.h> #include <string.h> diff --git a/sway/config.c b/sway/config.c @@ -1,3 +1,4 @@ +#undef _POSIX_C_SOURCE #define _XOPEN_SOURCE 700 // for realpath #include <stdio.h> #include <stdbool.h> diff --git a/sway/config/bar.c b/sway/config/bar.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <signal.h> #include <stdbool.h> #include <stdio.h> diff --git a/sway/config/input.c b/sway/config/input.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <limits.h> #include <float.h> diff --git a/sway/config/output.c b/sway/config/output.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <drm_fourcc.h> #include <stdbool.h> diff --git a/sway/config/seat.c b/sway/config/seat.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <limits.h> #include <stdlib.h> #include <string.h> diff --git a/sway/criteria.c b/sway/criteria.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <stdio.h> #include <stdbool.h> diff --git a/sway/desktop/launcher.c b/sway/desktop/launcher.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <string.h> #include <wlr/types/wlr_xdg_activation_v1.h> diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <stdlib.h> #include <strings.h> diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdbool.h> #include <stdlib.h> #include <string.h> diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 199309L #include <float.h> #include <stdbool.h> #include <stdlib.h> diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 199309L #include <float.h> #include <stdbool.h> #include <stdlib.h> diff --git a/sway/input/cursor.c b/sway/input/cursor.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <math.h> #include <libevdev/libevdev.h> diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <ctype.h> #include <stdio.h> #include <string.h> diff --git a/sway/input/seat.c b/sway/input/seat.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <linux/input-event-codes.h> #include <string.h> diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <float.h> #include <libevdev/libevdev.h> #include <wlr/types/wlr_cursor.h> diff --git a/sway/input/seatop_down.c b/sway/input/seatop_down.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <float.h> #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_tablet_v2.h> diff --git a/sway/input/seatop_move_floating.c b/sway/input/seatop_move_floating.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <wlr/types/wlr_cursor.h> #include "sway/desktop/transaction.h" #include "sway/input/cursor.h" diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <limits.h> #include <wlr/types/wlr_cursor.h> #include <wlr/util/edges.h> diff --git a/sway/input/seatop_resize_floating.c b/sway/input/seatop_resize_floating.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <limits.h> #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_xcursor_manager.h> diff --git a/sway/input/seatop_resize_tiling.c b/sway/input/seatop_resize_tiling.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <wlr/types/wlr_cursor.h> #include <wlr/util/edges.h> #include "sway/commands.h" diff --git a/sway/input/tablet.c b/sway/input/tablet.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <wlr/config.h> #include <wlr/types/wlr_tablet_v2.h> diff --git a/sway/ipc-server.c b/sway/ipc-server.c @@ -1,5 +1,4 @@ // See https://i3wm.org/docs/ipc.html for protocol information -#define _POSIX_C_SOURCE 200112L #include <linux/input-event-codes.h> #include <assert.h> #include <errno.h> diff --git a/sway/lock.c b/sway/lock.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <wlr/types/wlr_scene.h> #include <wlr/types/wlr_session_lock_v1.h> diff --git a/sway/main.c b/sway/main.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <getopt.h> #include <pango/pangocairo.h> #include <signal.h> diff --git a/sway/server.c b/sway/server.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <stdbool.h> #include <stdlib.h> diff --git a/sway/sway_text_node.c b/sway/sway_text_node.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <drm_fourcc.h> #include <stdio.h> #include <stdlib.h> diff --git a/sway/swaynag.c b/sway/swaynag.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <signal.h> #include <stdbool.h> #include <stdlib.h> diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <ctype.h> #include <stdbool.h> #include <stdlib.h> diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <drm_fourcc.h> #include <stdint.h> diff --git a/sway/tree/node.c b/sway/tree/node.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/output.h" #include "sway/server.h" #include "sway/tree/container.h" diff --git a/sway/tree/output.c b/sway/tree/output.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <ctype.h> #include <string.h> diff --git a/sway/tree/root.c b/sway/tree/root.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdbool.h> #include <stdlib.h> #include <string.h> diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <strings.h> #include <wayland-server-core.h> diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809 #include <ctype.h> #include <limits.h> #include <stdbool.h> diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdbool.h> #include <stddef.h> #include <stdio.h> diff --git a/swaymsg/main.c b/swaymsg/main.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <limits.h> #include <stdio.h> diff --git a/swaynag/config.c b/swaynag/config.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <getopt.h> #include <stdio.h> #include <stdlib.h> diff --git a/swaynag/main.c b/swaynag/main.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <signal.h> #include "log.h" diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <assert.h> #include <sys/stat.h> diff --git a/swaynag/types.c b/swaynag/types.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include <getopt.h> #include <stdbool.h> #include <stdlib.h>