]> git.cworth.org Git - ttt/commitdiff
2005-11-11 Carl Worth <cworth@cworth.org>
authorCarl Worth <carl@theworths.org>
Fri, 11 Nov 2005 20:47:35 +0000 (20:47 +0000)
committerCarl Worth <carl@theworths.org>
Fri, 11 Nov 2005 20:47:35 +0000 (20:47 +0000)
        * src/ttt.h:
        * src/x.c:
        * src/x.h: Move include of stdarg.h from x.c to ttt.h.

ChangeLog
src/ttt.h
src/x.c
src/x.h

index f0f59db6470d0fa13e9f4e44d98238ed66f1e1cb..69d3b08ac65c8e792c5badfc42ff288578e4b302 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-11  Carl Worth  <cworth@cworth.org>
+
+       * src/ttt.h:
+       * src/x.c:
+       * src/x.h: Move include of stdarg.h from x.c to ttt.h.
+
 2005-11-11  Carl Worth  <cworth@cworth.org>
 
        * src/ttt-board.h: Include ttt.h to get standard includes.
index 0820212d68f699dd33a82f4f4a9293175ca2fd01..203c637b042a6a12a2158120eec18ffbf829cda9 100644 (file)
--- a/src/ttt.h
+++ b/src/ttt.h
@@ -30,6 +30,7 @@
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <fcntl.h>
diff --git a/src/x.c b/src/x.c
index 3e46abdd03fb0c388c60d5494cce359cdcaf2cc6..54566423e03f29c45c0d65f190e448a2ae18c79b 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -19,9 +19,7 @@
  * Author: Carl Worth <carl@theworths.org>
  */
 
-#include "ttt.h"
-
-#include <stdarg.h>
+#include "x.h"
 
 void
 xasprintf (char **strp, const char *fmt, ...)
diff --git a/src/x.h b/src/x.h
index 024d8c283885590596cfe566e6cb70747b23b2b6..58f1297e864ec80e25170b8d57d0b7a902725f20 100644 (file)
--- a/src/x.h
+++ b/src/x.h
@@ -22,6 +22,8 @@
 #ifndef _X_H_
 #define _X_H_
 
+#include "ttt.h"
+
 void
 xasprintf (char **strp, const char *fmt, ...) TTT_PRINTF_FORMAT(2, 3);