summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-06-20 15:01:14 +0200
committerAndy Wingo <wingo@pobox.com>2018-06-20 15:01:14 +0200
commit55317a5dd31aaceee4ddf2f6ec1b15b14e32e2e8 (patch)
tree61d4f2bde34a662fc41d93b821e697259810385b
parent2eb8fa1751dcb1b57bc607c6df61f9d363dff8c3 (diff)
downloadguile-55317a5dd31aaceee4ddf2f6ec1b15b14e32e2e8.tar.gz
Fix missing includes in tests.
* test-suite/standalone/test-scm-c-read.c: * test-suite/standalone/test-scm-to-latin1-string.c: Add <string.h>.
-rw-r--r--test-suite/standalone/test-scm-c-read.c5
-rw-r--r--test-suite/standalone/test-scm-to-latin1-string.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/test-suite/standalone/test-scm-c-read.c b/test-suite/standalone/test-scm-c-read.c
index c4dbf6251..7ba6533c5 100644
--- a/test-suite/standalone/test-scm-c-read.c
+++ b/test-suite/standalone/test-scm-c-read.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008, 2014 Free Software Foundation, Inc.
+/* Copyright (C) 2008,2014,2018 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -25,8 +25,9 @@
#undef NDEBUG
-#include <libguile.h>
#include <assert.h>
+#include <string.h>
+#include <libguile.h>
diff --git a/test-suite/standalone/test-scm-to-latin1-string.c b/test-suite/standalone/test-scm-to-latin1-string.c
index b8f012072..0b0a1289a 100644
--- a/test-suite/standalone/test-scm-to-latin1-string.c
+++ b/test-suite/standalone/test-scm-to-latin1-string.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011,2018 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -21,8 +21,10 @@
# include <config.h>
#endif
-#include <libguile.h>
#include <stdlib.h>
+#include <string.h>
+
+#include <libguile.h>
/*
This outputs: