summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-11-04 18:07:38 +0000
committerJim Meyering <jim@meyering.net>1996-11-04 18:07:38 +0000
commit16157cc455337732a6afe4785a75f6344e49a43f (patch)
treef753fb4aa79efc46dd89eab27ebe8f8068779ba9
parent40f9bad14352bcfff7ecafa0945489ac01cbd902 (diff)
downloadgnulib-16157cc455337732a6afe4785a75f6344e49a43f.tar.gz
libitize
-rw-r--r--lib/stpcpy.c4
-rw-r--r--lib/xgetcwd.c11
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/stpcpy.c b/lib/stpcpy.c
index e7a95a4656..6369661a48 100644
--- a/lib/stpcpy.c
+++ b/lib/stpcpy.c
@@ -15,8 +15,8 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
+#if HAVE_CONFIG_H
+# include <config.h>
#endif
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c
index 3615161a01..7ab2204682 100644
--- a/lib/xgetcwd.c
+++ b/lib/xgetcwd.c
@@ -17,7 +17,7 @@
/* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */
-#ifdef HAVE_CONFIG_H
+#if HAVE_CONFIG_H
# include <config.h>
#endif
@@ -26,14 +26,15 @@
#ifndef errno
extern int errno;
#endif
+
#include <sys/types.h>
#include "pathmax.h"
-#ifndef HAVE_GETCWD
-char *getwd ();
-# define getcwd(buf, max) getwd (buf)
-#else
+#if HAVE_GETCWD
char *getcwd ();
+#else
+char *getwd ();
+# define getcwd(Buf, Max) getwd (Buf)
#endif
/* Amount to increase buffer size by in each try. */