summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--draw.c2
-rw-r--r--files.c2
-rw-r--r--gramscii.c2
-rw-r--r--gramscii.h2
-rw-r--r--lineset.c2
-rw-r--r--screen.c2
6 files changed, 7 insertions, 5 deletions
diff --git a/draw.c b/draw.c
index 711d1ae..a6deab0 100644
--- 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>
diff --git a/files.c b/files.c
index 37aac48..9ca173f 100644
--- 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>
diff --git a/gramscii.c b/gramscii.c
index 008adce..769832f 100644
--- 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>
diff --git a/gramscii.h b/gramscii.h
index e6c5b77..96445d3 100644
--- 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>
diff --git a/lineset.c b/lineset.c
index 4710c59..595ccba 100644
--- a/lineset.c
+++ b/lineset.c
@@ -1,3 +1,5 @@
+#define _POSIX_C_SOURCE 200112L
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/screen.c b/screen.c
index cedd6f9..088847a 100644
--- 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>