C: Handle _POSIX_C_SOURCE macro properly

This commit is contained in:
Issam E. Maghni 2021-05-10 21:27:12 -04:00
parent 31b4b96ebf
commit 539ef77bfa
97 changed files with 393 additions and 5 deletions

View file

@ -1,4 +1,8 @@
#define _POSIX_C_SOURCE 200809 #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <cairo.h> #include <cairo.h>
#include <fcntl.h> #include <fcntl.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200112L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#endif
#include <signal.h> #include <signal.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200112L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#endif
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#include <math.h> #include <math.h>

View file

@ -1,4 +1,8 @@
#define _POSIX_C_SOURCE 200809 #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#define _POSIX_C_SOURCE 200809 #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "config.h" #include "config.h"
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "config.h" #include "config.h"
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <libevdev/libevdev.h> #include <libevdev/libevdev.h>
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <wlr/types/wlr_box.h> #include <wlr/types/wlr_box.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include "sway/config.h" #include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include "sway/config.h" #include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include "sway/config.h" #include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"
#include "util.h" #include "util.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include "sway/config.h" #include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include "sway/config.h" #include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include "sway/config.h" #include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include "sway/config.h" #include "sway/config.h"
#include "sway/commands.h" #include "sway/commands.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <math.h> #include <math.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <libgen.h> #include <libgen.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#include <strings.h> #include <strings.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <strings.h> #include <strings.h>
#include "config.h" #include "config.h"
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <string.h> #include <string.h>
#include "sway/commands.h" #include "sway/commands.h"
#include "sway/config.h" #include "sway/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <signal.h> #include <signal.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <limits.h> #include <limits.h>
#include <float.h> #include <float.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <strings.h> #include <strings.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200112L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include <wlr/types/wlr_surface.h> #include <wlr/types/wlr_surface.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 199309L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L #define _POSIX_C_SOURCE 199309L
#endif
#include <float.h> #include <float.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 199309L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L #define _POSIX_C_SOURCE 199309L
#endif
#include <float.h> #include <float.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <math.h> #include <math.h>
#include <libevdev/libevdev.h> #include <libevdev/libevdev.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <float.h> #include <float.h>
#include <libevdev/libevdev.h> #include <libevdev/libevdev.h>
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <float.h> #include <float.h>
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_tablet_v2.h> #include <wlr/types/wlr_tablet_v2.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>
#include "sway/desktop.h" #include "sway/desktop.h"
#include "sway/desktop/transaction.h" #include "sway/desktop/transaction.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <limits.h> #include <limits.h>
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>
#include <wlr/util/edges.h> #include <wlr/util/edges.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <limits.h> #include <limits.h>
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xcursor_manager.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>
#include <wlr/util/edges.h> #include <wlr/util/edges.h>
#include "sway/commands.h" #include "sway/commands.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <wlr/backend/libinput.h> #include <wlr/backend/libinput.h>
#include <wlr/types/wlr_tablet_v2.h> #include <wlr/types/wlr_tablet_v2.h>

View file

@ -1,5 +1,9 @@
// See https://i3wm.org/docs/ipc.html for protocol information // See https://i3wm.org/docs/ipc.html for protocol information
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200112L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#endif
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <getopt.h> #include <getopt.h>
#include <pango/pangocairo.h> #include <pango/pangocairo.h>
#include <signal.h> #include <signal.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <signal.h> #include <signal.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <drm_fourcc.h> #include <drm_fourcc.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include "sway/output.h" #include "sway/output.h"
#include "sway/server.h" #include "sway/server.h"
#include "sway/tree/container.h" #include "sway/tree/container.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <strings.h> #include <strings.h>
#include <wayland-server-core.h> #include <wayland-server-core.h>

View file

@ -1,4 +1,8 @@
#define _POSIX_C_SOURCE 200809 #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "swaybar/config.h" #include "swaybar/config.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <json.h> #include <json.h>
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#include <ctype.h> #include <ctype.h>

View file

@ -1,4 +1,8 @@
#define _POSIX_C_SOURCE 200809 #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#include <limits.h> #include <limits.h>
#include <poll.h> #include <poll.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#include <limits.h> #include <limits.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h> #include <assert.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <ctype.h> #include <ctype.h>
#include <dirent.h> #include <dirent.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <arpa/inet.h> #include <arpa/inet.h>
#include <cairo.h> #include <cairo.h>
#include <limits.h> #include <limits.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <getopt.h> #include <getopt.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>
#include "log.h" #include "log.h"

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include <sys/stat.h> #include <sys/stat.h>

View file

@ -1,4 +1,8 @@
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE+0 < 200809L
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#endif
#include <getopt.h> #include <getopt.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>