fix _POSIX_C_SOURCE - gramscii - A simple editor for ASCII box-and-arrow charts
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 864ec4a6c5ef86273653af4eaab9315bd1b7bbca
DIR parent 5157bd6a0b2dcda08143fd725e1c04dadc315bdc
HTML Author: KatolaZ <katolaz@freaknet.org>
Date: Wed, 14 Oct 2020 11:29:58 +0100
fix _POSIX_C_SOURCE
Diffstat:
M draw.c | 2 +-
M files.c | 2 +-
M gramscii.c | 2 +-
M gramscii.h | 2 +-
M lineset.c | 2 ++
M screen.c | 2 +-
6 files changed, 7 insertions(+), 5 deletions(-)
---
DIR diff --git a/draw.c b/draw.c
@@ -1,4 +1,4 @@
-#define _POSIX_C_SOURCE 2
+#define _POSIX_C_SOURCE 200112L
#include <stdlib.h>
#include <string.h>
DIR diff --git a/files.c b/files.c
@@ -1,4 +1,4 @@
-#define _POSIX_C_SOURCE 2
+#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <string.h>
DIR diff --git a/gramscii.c b/gramscii.c
@@ -20,7 +20,7 @@
*
*/
-#define _POSIX_C_SOURCE 2
+#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <stdlib.h>
DIR diff --git a/gramscii.h b/gramscii.h
@@ -1,7 +1,7 @@
#ifndef __GRAMSCII_H__
#define __GRAMSCII_H__
-#define _POSIX_C_SOURCE 2
+#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <termios.h>
DIR diff --git a/lineset.c b/lineset.c
@@ -1,3 +1,5 @@
+#define _POSIX_C_SOURCE 200112L
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
DIR diff --git a/screen.c b/screen.c
@@ -1,4 +1,4 @@
-#define _POSIX_C_SOURCE 2
+#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <stdlib.h>